CVE-2025-47778
JSON

6.1medium

Sulu vulnerable to XXE in SVG File upload Inspector

Severity
6.1medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.85% (higher than 56% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-f6rx-hf55-4255

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.

Affected

Product or packageVersionsReported by
sulu sulu>= 2.5.21, < 2.5.25, >= 2.6.5, < 2.6.9, >= 3.0.0-alpha1, < 3.0.0-alpha3CVE List
sulu/sulu (Packagist)from 2.5.21 before 2.5.25, from 2.6.5 before 2.6.9, from 3.0.0-alpha1 before 3.0.0-alpha3GitHub Advisory Database

All scores

GitHub_M6.1medium CVSS:4.0CVSS: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
GitHubmedium CVSS:4.0CVSS: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

Classification

CWE-611

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
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:

-$dom->loadXML($svg, \LIBXML_NOENT | \LIBXML_DTDLOAD);
+$dom->loadXML($data, LIBXML_NONET);
References
NVD (es)

Sulu es un sistema de gestión de contenido PHP de código abierto basado en el framework Symfony. A partir de las versiones 2.5.21, 2.6.5 y 3.0.0-alpha1, un usuario administrador puede subir archivos SVG que pueden cargar datos externos mediante la librería XML DOM. Esto puede utilizarse para referencias a entidades externas XML inseguras. El problema se ha corregido en las versiones 2.6.9, 2.5.25 y 3.0.0-alpha3. Como solución alternativa, se puede corregir manualmente el archivo de efectos `src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php`.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-47778 changed 2025-05-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-f6rx-hf55-4255 changed 2025-05-15CC-BY-4.0
NVDCVE-2025-47778 changed 2026-06-17Public domain