NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

Symfony: XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = trueGHSA-5jff-8h8q-r5qx

MEDIUMFix: symfony/symfony@334ef21

GHSA-5jff-8h8q-r5qx is a medium-severity (CVSS 6.3) XML External Entity (XXE) vulnerability in symfony/config. A fix is available for symfony/config — see the affected versions and patch details below.

Also known asCVE-2026-123824
Published
Updated
Affected
8 pkgs
Patched
8 / 8
Exploits
None indexed
Exploitation data as of Dec 1, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-5jff-8h8q-r5qx.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs21th percentile — riskier than 21% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

8 pkgs affected
🐘symfony/config🐘symfony/config🐘symfony/config🐘symfony/config🐘symfony/symfony🐘symfony/symfony🐘symfony/symfony🐘symfony/symfony

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Description

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 removed the flag from Crawler::addXmlContent() in the DomCrawler component. The occurrence in the Config component was not addressed at the time.

The clearest evidence is what libxml reports when the referenced file is not well formed on its own, since the errors are attributed to that file:

[ERROR 77] Premature end of data in tag root line 2 (in file:///.../invalid.xml - line 3, column 1)
[ERROR 85] chunk is not well balanced (in file:///.../invalid.xml - line 3, column 1)
[ERROR 26] Entity 'xxe' failed to parse

libxml can only produce those by opening and reading the file. Isolating the flag confirms it directly: with validateOnParse = true, an entity pointing at a readable file yields its content in the DOM, and one pointing at a missing path yields failed to load external entity "file:///...". With the flag off, neither happens.

Impact depends on the stream wrappers. The doctype check throws XmlParsingException with a fixed message, so the DOM never reaches the caller. But the external entities are resolved before that check. A parameter entity can read a local file through php://filter and put its content into the URL of a second external entity. LIBXML_NONET blocks http://, so PHP's built-in wrappers give that URL no way out. A network-capable stream wrapper registered by the application, such as s3://, does: the content of the file then leaves the server. On every setup, an attacker also gets a file-existence oracle from the distinct libxml error on a missing path, and a denial of service vector by pointing the entity at a large or slow file.

Reachability is limited. The callers of XmlUtils::parse() in Symfony itself (the XML loaders of DependencyInjection, Routing, Validator and Serializer, XliffFileLoader and QtFileLoader) consume developer-provided configuration and translation files, which are trusted input; the Loco, Crowdin and Lokalise translation providers feed it the XLIFF documents fetched from the operator-configured service. The exposure is applications that pass untrusted XML to XmlUtils::parse() directly, which its string-accepting signature permits. The severity is rated low on that basis, matching the rating of CVE-2026-45071.

Resolution

The $dom->validateOnParse = true; line is removed. Nothing else changes: doctype rejection, schema validation and error reporting are untouched.

The flag was dead weight independently of the security question. It can only act on a document carrying a doctype, which this method rejects unconditionally three lines later, so validation could never legitimately succeed. On every doctype-less document, meaning every valid Symfony configuration file, it merely produced a spurious Validation failed: no DTD found ! entry in the libxml error buffer. Schema validation is a separate concern handled through the $schemaOrCallable argument and never relied on this flag.

The patches for this issue are available here for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).

Credits

Symfony would like to thank Prithiv Kumaravel (ProjectDiscovery) and Björn Meyer from Shopware AG for reporting the issue.

Affected Packages

8 total 8 fixed
EcosystemPackageVulnerable rangeFix
🐘Packagistsymfony/configall versions5.4.56composer require symfony/config:^5.4.56
🐘Packagistsymfony/config≥ 6.0.0&&< 6.4.506.4.50composer require symfony/config:^6.4.50
🐘Packagistsymfony/config≥ 7.0.0&&< 7.4.237.4.23composer require symfony/config:^7.4.23
🐘Packagistsymfony/config≥ 8.0.0&&< 8.1.118.1.11composer require symfony/config:^8.1.11
🐘Packagistsymfony/symfonyall versions5.4.56composer require symfony/symfony:^5.4.56
🐘Packagistsymfony/symfony≥ 6.0.0&&< 6.4.506.4.50composer require symfony/symfony:^6.4.50

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for symfony/config, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update symfony/config to 5.4.56 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-5jff-8h8q-r5qx is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

### Description `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 removed the flag from `Crawler::addXmlContent()` in the DomCrawler c
O3 Security · Impact-Aware SCA

Is GHSA-5jff-8h8q-r5qx in your dependencies?

Find it across Packagist, including transitive dependencies.

Symfony: XXE (Local File Read) in Config XmlUtils::parse()…