All reports
Medium

Sulu vulnerable to XXE in SVG File upload Inspector

Affected versions

Composersulu/sulu
Affected versions
>= 2.6.5, < 2.6.9
Fixed version
2.6.9
Composersulu/sulu
Affected versions
>= 2.5.21, < 2.5.25
Fixed version
2.5.25
Composersulu/sulu
Affected versions
>= 3.0.0-alpha1, < 3.0.0-alpha3
Fixed version
3.0.0-alpha3

Exploitation

CVE-2025-47778

Probability of exploitation in the next 30 days: 0.48%

FIRST EPSS · 2026-11-22

Description

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

Links

Credits

  • mcdruid
  • alexander-schranz
  • ausi