Sulu vulnerable to XXE in SVG File upload Inspector
Date: 2025-05
Affected: composer/sulu/sulu, composer/sulu/sulu, composer/sulu/sulu
Attack vector: other
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2025-47778
CWE: CWE-611

### 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: ```diff -$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


Mitigations:

Architectural layers (MAESTRO):