Sulu vulnerable to XXE in SVG File upload Inspector
Package
Affected versions
>= 2.5.21, < 2.5.25
>= 2.6.5, < 2.6.9
>= 3.0.0-alpha1, < 3.0.0-alpha3
Patched versions
2.5.25
2.6.9
3.0.0-alpha3
Description
Published by the National Vulnerability Database
May 14, 2025
Published to the GitHub Advisory Database
May 15, 2025
Reviewed
May 15, 2025
Last updated
May 15, 2025
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:
Workarounds
Patch the effect file
src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php
in sulu with:References
References