Symfony: XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = true
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| composer:symfony/config | < 5.4.56 | 5.4.56 |
| composer:symfony/config | >= 6.0.0, < 6.4.50 | 6.4.50 |
| composer:symfony/config | >= 7.0.0, < 7.4.23 | 7.4.23 |
| composer:symfony/config | >= 8.0.0, < 8.1.11 | 8.1.11 |
| composer:symfony/symfony | < 5.4.56 | 5.4.56 |
Show all (8)
| Package | Affected versions | Fixed in |
|---|---|---|
| composer:symfony/symfony | >= 6.0.0, < 6.4.50 | 6.4.50 |
| composer:symfony/symfony | >= 7.0.0, < 7.4.23 | 7.4.23 |
| composer:symfony/symfony | >= 8.0.0, < 8.1.11 | 8.1.11 |
Symfony\Component\Config\Util\XmlUtils::parse() sets $dom->validateOnParse = true immediately before calling loadXML(), and only rejects documents carrying a doctype afterwards. Enabling DTD validation makes libxml load and process the doctype during loadXML(), which includes resolving external entities. LIBXML_NONET blocks http:// but not file://, so a file:// entity is read from disk before the doctype rejection can run. This is the same defect as CVE-2026-45071 (GHSA-x6g4-fwcc-jj8w), which r…
Read on GitHub Advisory Database
On 12/02/2026, 08:04 AM, GitHub Advisory Database published "Symfony: XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = true" (type: Advisory). Severity is "Low" (low). Related technologies: PHP, Symfony. CVE: CVE-2026-123824.