NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2025-47778: Sulu vulnerable to XXE in SVG File upload Inspector

mediumCVSS 4.0 6.1GHSA-f6rx-hf55-4255

Impact A admin user can upload SVG which may load external data via XML DOM library, specially this can be used for eventually reference none secure XML External Entity References. Patches The problem has not been patched yet. Users should upgrade to patched versions once they become available.

Published May 15, 2025

Affected packages

sulu/sulu

Ecosystem
Composer (PHP)
Affected
>= 2.5.21, < 2.5.25
Fixed in
2.5.25
Check
composer show sulu/sulu

sulu/sulu

Ecosystem
Composer (PHP)
Affected
>= 2.6.5, < 2.6.9
Fixed in
2.6.9
Check
composer show sulu/sulu

sulu/sulu

Ecosystem
Composer (PHP)
Affected
>= 3.0.0-alpha1, < 3.0.0-alpha3
Fixed in
3.0.0-alpha3
Check
composer show sulu/sulu

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

A admin user can upload SVG which may load external data via XML DOM library, specially this can be used for eventually reference none secure XML External Entity References.

Patches

The problem has not been patched yet. Users should upgrade to patched versions once they become available. Currently affected versions are:

  • 2.6.9
  • 2.5.25
  • 3.0.0-alpha3

Workarounds

Patch the effect file src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php in sulu with:

-$dom->loadXML($svg, \LIBXML_NOENT | \LIBXML_DTDLOAD);
+$dom->loadXML($data, LIBXML_NONET);

References

  • GitHub repository: https://github.com/sulu/sulu
  • Vulnerable code: https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php

Credited to mcdruid, alexander-schranz, ausi.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries