Skip to main content
Menu
Advisories

Attachments typed as SVG over XML-RPC skip sanitization and the role setting, leading to gzip bombs

GHSA-XJVQ-4JWJ-3MWQPublished Updated GitHub

Description

The plugin trusts an attachment's post_mime_type, which XML-RPC's metaWeblog.newMediaObject lets the caller set to image/svg+xml on arbitrary bytes. Then at render time, those bytes are gunzip with no size limit.

This has been resolved in Safe SVG v2.5.2 by checking both the MIME type and the file extension.

Affected versions

References

GitHub · 10up/safe-svg