CVE-2026-123824: Symfony XXE (Local File Read) Vulnerability

LOW
Advisory Identifier: GHSA-5jff-8h8q-r5qx
CVSS 6.3
CWE-611
Published
Advisory Summary

CVE-2026-123824 is a LOW (CVSS 6.3) xxe (local file read) vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Symfony libraries in the Packagist ecosystem. The issue involves xxe (local file read) in config xmlutils::parse() via validateonparse = true. Remediation is available by upgrading affected packages to version 5.4.56, 6.4.50, 7.4.23, 8.1.11.

CVE-2026-123824 at a Glance

CVE Identifier CVE-2026-123824
GHSA Identifier GHSA-5jff-8h8q-r5qx
Severity LOW
CVSS v3.1 Base Score 6.3
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Symfony
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2026-123824

To remediate this vulnerability, upgrade all affected Symfony dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

symfony/config fixed: 5.4.56
Upgrade symfony/config to 5.4.56
symfony/config fixed: 6.4.50
Upgrade symfony/config to 6.4.50
symfony/config fixed: 7.4.23
Upgrade symfony/config to 7.4.23
symfony/config fixed: 8.1.11
Upgrade symfony/config to 8.1.11
symfony/symfony fixed: 5.4.56
Upgrade symfony/symfony to 5.4.56
symfony/symfony fixed: 6.4.50
Upgrade symfony/symfony to 6.4.50
symfony/symfony fixed: 7.4.23
Upgrade symfony/symfony to 7.4.23
symfony/symfony fixed: 8.1.11
Upgrade symfony/symfony to 8.1.11
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for symfony/config

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-123824, inspect your project dependencies for Symfony:

inspect dependencies for symfony/config

Analyze the terminal output to locate any version of Symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.56), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Symfony, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://github.com/symfony/symfony/commit/334ef21a6039355c05b123e7df60699be0e28da3) 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.

CVE-2026-123824 Affected Symfony Versions

8 component(s)
Fixed Versions:
5.4.566.4.507.4.238.1.11
Product / Package Ecosystem Affected Versions Fixed Version
symfony/config
Packagist
< 5.4.56
5.4.56
symfony/config
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/config
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/config
Packagist
≥ 8.0.0
< 8.1.11
8.1.11
symfony/symfony
Packagist
< 5.4.56
5.4.56
symfony/symfony
Packagist
≥ 6.0.0
< 6.4.50
6.4.50
symfony/symfony
Packagist
≥ 7.0.0
< 7.4.23
7.4.23
symfony/symfony
Packagist
≥ 8.0.0
< 8.1.11
8.1.11

References

Frequently Asked Questions

What is CVE-2026-123824?
CVE-2026-123824 is a security vulnerability in Symfony involving XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = true under CWE-611: Improper Restriction of XML External Entity Reference.
Which Symfony versions are affected?
Affected versions include releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11 across affected packages: symfony/config, symfony/symfony.
What version fixes CVE-2026-123824?
Upgrading to 5.4.56, 6.4.50, 7.4.23, 8.1.11 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/config affected?
Yes, symfony/config is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 5.4.56, 6.4.50, 7.4.23, 8.1.11. Upgrade your dependency to 5.4.56, 6.4.50, 7.4.23, 8.1.11 or later.
What is the CVSS score of CVE-2026-123824?
CVE-2026-123824 has a CVSS v3.1 base score of 6.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2026-123824?
CVE-2026-123824 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Packagist dependencies for CVE-2026-123824?
Run the dependency tree command: 'inspect dependencies for symfony/config'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-5jff-8h8q-r5qx",
  "modified" : "2026-12-01T23:04:16Z",
  "published" : "2026-12-01T23:04:16Z",
  "aliases" : [ "CVE-2026-123824" ],
  "summary" : "Symfony: XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = true",
  "details" : "### Description\n\n`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.\n\nThis 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.\n\nThe 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:\n\n```\n[ERROR 77] Premature end of data in tag root line 2 (in file:///.../invalid.xml - line 3, column 1)\n[ERROR 85] chunk is not well balanced (in file:///.../invalid.xml - line 3, column 1)\n[ERROR 26] Entity 'xxe' failed to parse\n```\n\nlibxml 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.\n\n**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.\n\n**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.\n\n### Resolution\n\nThe `$dom->validateOnParse = true;` line is removed. Nothing else changes: doctype rejection, schema validation and error reporting are untouched.\n\nThe 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.\n\nThe patches for this issue are available [here](https://github.com/symfony/symfony/commit/334ef21a6039355c05b123e7df60699be0e28da3) for branch 5.4 (and forward-ported to 6.4, 7.4, 8.1 and 8.2).\n\n### Credits\n\nSymfony would like to thank Prithiv Kumaravel (ProjectDiscovery) and Björn Meyer from Shopware AG for reporting the issue.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/config"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/config"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/config"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/config"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.4.56"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.0.0"
      }, {
        "fixed" : "6.4.50"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.4.23"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "symfony/symfony"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "8.0.0"
      }, {
        "fixed" : "8.1.11"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/security/advisories/GHSA-5jff-8h8q-r5qx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-123824"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/commit/334ef21a6039355c05b123e7df60699be0e28da3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/config/CVE-2026-123824.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2026-123824.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/symfony/symfony"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v5.4.56"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v6.4.50"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v7.4.23"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/symfony/symfony/releases/tag/v8.1.11"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T23:04:16Z",
    "nvd_published_at" : "2026-11-06T18:18:05Z"
  }
}