CVE-2025-47778 Sulu vulnerable to XXE in SVG File upload Inspector
An admin user can upload malicious SVG files to trigger XML External Entity attacks, potentially reading sensitive data or causing denial of service.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-47778?
CVE-2025-47778 is a medium-severity vulnerability in sulu, published on 14 May 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official 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.
Weakness: CWE-611
Which versions are affected by CVE-2025-47778?
6 open source packages ship an affected version, including sulu/sulu.
| Package | Affected | Fixed in |
|---|---|---|
sulu/sulu Packagist | From 2.5.21 | 2.5.25 |
sulu/sulu Packagist | From 2.5.21 | 2.5.25 |
sulu/sulu Packagist | From 2.6.5 | 2.6.9 |
sulu/sulu Packagist | From 2.6.5 | 2.6.9 |
sulu/sulu Packagist | From 3.0.0-alpha1 | 3.0.0-alpha3 |
sulu/sulu Packagist | From 3.0.0-alpha1 | 3.0.0-alpha3 |
How do I fix CVE-2025-47778?
Upgrade sulu/sulu to a fixed version for your release line: 2.5.25, 2.6.9 or 3.0.0-alpha3.
Is CVE-2025-47778 being exploited?
There is no known exploitation of CVE-2025-47778 in the wild and no public exploit code.
Sources
Also known as GHSA-f6rx-hf55-4255.