{"id":"CVE-2025-47778","aliases":["GHSA-f6rx-hf55-4255"],"url":"https://o3.security/vulnerability/CVE-2025-47778","summary":"Sulu vulnerable to XXE in SVG File upload Inspector","details":"### Impact\n\nA 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.\n\n### Patches\n\nThe problem has not been patched yet. Users should upgrade to patched versions once they become available. Currently affected versions are:\n\n - 2.6.9\n - 2.5.25\n - 3.0.0-alpha3\n\n### Workarounds\n\nPatch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` in sulu with:\n\n```diff\n-$dom->loadXML($svg, \\LIBXML_NOENT | \\LIBXML_DTDLOAD);\n+$dom->loadXML($data, LIBXML_NONET);\n```\n\n### References\n\n - GitHub repository: https://github.com/sulu/sulu\n - Vulnerable code: https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php","published":"2025-05-14T15:29:08.187Z","modified":"2026-08-12T03:51:14.095130097Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"sulu/sulu","fixedVersion":"2.5.25"},{"ecosystem":"Packagist","name":"sulu/sulu","fixedVersion":"2.6.9"},{"ecosystem":"Packagist","name":"sulu/sulu","fixedVersion":"3.0.0-alpha3"}],"fix":{"url":"https://github.com/sulu/sulu/commit/02f52fca04eb9495b9b4a0c5cc64cf23bc27f544","label":"sulu/sulu@02f52fc"},"references":[{"type":"WEB","url":"https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47778.json"},{"type":"ADVISORY","url":"https://github.com/sulu/sulu/security/advisories/GHSA-f6rx-hf55-4255"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47778"},{"type":"FIX","url":"https://github.com/sulu/sulu/commit/02f52fca04eb9495b9b4a0c5cc64cf23bc27f544"},{"type":"PACKAGE","url":"https://github.com/sulu/sulu"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:14.095130097Z"}}