{"id":"CVE-2025-47778","aliases":["EUVD-2025-14948","GHSA-f6rx-hf55-4255"],"status":"published","title":"Sulu vulnerable to XXE in SVG File upload Inspector","description":"Sulu is an open-source PHP content management system based on the Symfony framework. Starting in versions 2.5.21, 2.6.5, and 3.0.0-alpha1, an admin user can upload SVG which may load external data via XML DOM library. This can be used for insecure XML External Entity References. The problem has been patched in versions 2.6.9, 2.5.25, and 3.0.0-alpha3. As a workaround, one may patch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` manually.","severity":{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00469,"percentile":0.40882,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-611"],"published":"2025-05-14T15:29:08Z","modified":"2026-10-28T02:30:52Z","fixes":[{"ecosystem":"Packagist","package":"sulu/sulu","fixed_in":["2.5.25","2.6.9","3.0.0-alpha3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.21"},{"fixed":"2.5.25"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.5"},{"fixed":"2.6.9"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0-alpha1"},{"fixed":"3.0.0-alpha3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.5.21"},{"fixed":"2.5.25"}]}],"versions":["2.5.21","2.5.22","2.5.23","2.5.24"]},{"source":"osv","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.5"},{"fixed":"2.6.9"}]}],"versions":["2.6.5","2.6.6","2.6.7","2.6.8"]},{"source":"osv","ecosystem":"Packagist","package":"sulu/sulu","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0-alpha1"},{"fixed":"3.0.0-alpha3"}]}],"versions":["3.0.0-alpha1","3.0.0-alpha2"]}],"products":[{"vendor":"sulu","product":"sulu"}],"references":[{"url":"https://github.com/sulu/sulu/security/advisories/GHSA-f6rx-hf55-4255","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/sulu/sulu/commit/02f52fca04eb9495b9b4a0c5cc64cf23bc27f544","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-47778","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-f6rx-hf55-4255"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47778.json","tags":["advisory"]},{"url":"https://github.com/sulu/sulu","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-47778","title":"Sulu vulnerable to XXE in SVG File upload Inspector","description":"Sulu is an open-source PHP content management system based on the Symfony framework. Starting in versions 2.5.21, 2.6.5, and 3.0.0-alpha1, an admin user can upload SVG which may load external data via XML DOM library. This can be used for insecure XML External Entity References. The problem has been patched in versions 2.6.9, 2.5.25, and 3.0.0-alpha3. As a workaround, one may patch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` manually.","status":"published","published":"2025-05-14T15:29:08.187Z","modified":"2025-05-14T18:13:14.564Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium","assessor":"cna"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:32:25.982948Z"}],"euvd":[{"id":"EUVD-2025-14948","description":"Sulu is an open-source PHP content management system based on the Symfony framework. Starting in versions 2.5.21, 2.6.5, and 3.0.0-alpha1, an admin user can upload SVG which may load external data via XML DOM library. This can be used for insecure XML External Entity References. The problem has been patched in versions 2.6.9, 2.5.25, and 3.0.0-alpha3. As a workaround, one may patch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` manually.","status":"published","published":"2025-05-14T15:29:08Z","modified":"2025-05-14T18:13:14Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium"}],"updated_at":"2026-11-02T20:32:47.525663Z"}],"ghsa":[{"id":"GHSA-f6rx-hf55-4255","title":"Sulu vulnerable to XXE in SVG File upload Inspector","description":"### 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-\u003eloadXML($svg, \\LIBXML_NOENT | \\LIBXML_DTDLOAD);\n+$dom-\u003eloadXML($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","status":"published","published":"2025-05-15T16:08:02Z","modified":"2025-05-15T16:08:06Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:38:43.172412Z"}],"nvd":[{"id":"CVE-2025-47778","description":"Sulu is an open-source PHP content management system based on the Symfony framework. Starting in versions 2.5.21, 2.6.5, and 3.0.0-alpha1, an admin user can upload SVG which may load external data via XML DOM library. This can be used for insecure XML External Entity References. The problem has been patched in versions 2.6.9, 2.5.25, and 3.0.0-alpha3. As a workaround, one may patch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` manually.","status":"published","published":"2025-05-14T16:15:29.11Z","modified":"2026-06-17T09:28:40.487Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:11:08.321805Z"}],"osv":[{"id":"CVE-2025-47778","title":"Sulu vulnerable to XXE in SVG File upload Inspector","description":"Sulu is an open-source PHP content management system based on the Symfony framework. Starting in versions 2.5.21, 2.6.5, and 3.0.0-alpha1, an admin user can upload SVG which may load external data via XML DOM library. This can be used for insecure XML External Entity References. The problem has been patched in versions 2.6.9, 2.5.25, and 3.0.0-alpha3. As a workaround, one may patch the effect file `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php` manually.","status":"published","published":"2025-05-14T15:29:08.187Z","modified":"2026-10-28T02:30:52.130608338Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:44:49.707645Z"},{"id":"GHSA-f6rx-hf55-4255","title":"Sulu vulnerable to XXE in SVG File upload Inspector","description":"### 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-\u003eloadXML($svg, \\LIBXML_NOENT | \\LIBXML_DTDLOAD);\n+$dom-\u003eloadXML($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","status":"published","published":"2025-05-15T16:08:02Z","modified":"2025-05-15T16:59:30.564364Z","cvss":[{"version":"4.0","score":6.1,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","level":"medium"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:46:46.006631Z"}]}}
