Advisory

GHSA-f6rx-hf55-4255

Also known as: CVE-2025-47778

Summary

Sulu vulnerable to XXE in SVG File upload Inspector

Details

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

  • GitHub repository: https://github.com/sulu/sulu
  • Vulnerable code: https://github.com/sulu/sulu/blob/2.6/src/Sulu/Bundle/MediaBundle/FileInspector/SvgFileInspector.php

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-05-15 16:08 UTC
Modified
2025-05-15 16:59 UTC

Affected packages and fixes

sulu/sulu

Packagist · All systems

Affected

  • introduced 2.5.21, fixed 2.5.25 (ecosystem)

Fixed versions

2.5.25

Fix

The export has no generic command for this ecosystem.

sulu/sulu

Packagist · All systems

Affected

  • introduced 2.6.5, fixed 2.6.9 (ecosystem)

Fixed versions

2.6.9

Fix

The export has no generic command for this ecosystem.

sulu/sulu

Packagist · All systems

Affected

  • introduced 3.0.0-alpha1, fixed 3.0.0-alpha3 (ecosystem)

Fixed versions

3.0.0-alpha3

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences