Description
The Symfony Config component XmlUtils::parse() enables DTD validation before rejecting documents that carry a doctype, allowing XML external entity (XXE) injection in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. A remote attacker who can supply XML to this method can determine whether local files exist, cause a denial of service, and, in some configurations, exfiltrate local file content via a crafted XML document whose doctype declares an external file:// entity.
XmlUtils::parse() sets $dom->validateOnParse = true before calling loadXML() and only rejects documents carrying a doctype afterwards. Enabling DTD validation makes libxml resolve external entities during loadXML(), and LIBXML_NONET blocks http:// but not file://, so a file:// entity is read from disk before the doctype rejection runs. The content of the file is not returned to the caller, but the distinct libxml error for a missing path reveals whether a file exists, and an entity pointing at a large or slow file causes a denial of service. If the application registers a network-capable stream wrapper such as s3://, a parameter entity can also send the content of a local file to an external server. This is the same issue as CVE-2026-45071, which was fixed in the DomCrawler component but not in Config.

Applications are affected if they pass untrusted XML to XmlUtils::parse() directly. The Symfony components that call it process developer-provided or operator-configured sources, such as configuration files and the XLIFF documents fetched by the translation providers.
Published: 2026-11-06
Score: 2.3 Low
EPSS: n/a
KEV: No
Impact: Local File Read / Denial of Service via XXE
Action: Update
AI Analysis

Impact

The vulnerability is an XML External Entity injection that arises when Symfony's Config component allows DTD validation before rejecting a doctype. A remote attacker who can supply XML to XmlUtils::parse can cause the parser to resolve file:// entities, revealing the existence of local files, generating a denial of service by referencing large or slow files, and in some configurations exfiltrating file contents to an external server when a network‑capable stream wrapper is registered.

Affected Systems

Symfony applications built with Sensiolabs Symfony before version 5.4.56, 6.x before 6.4.50, 7.x before 7.4.23, and 8.x before 8.1.11 are affected. Any component that uses XmlUtils::parse for configuration, developer input, or translation files (XLIFF) can be vulnerable if it receives untrusted XML.

Risk and Exploitability

The CVSS score is 2.3, indicating low severity, and no EPSS score is available, suggesting limited evidence of exploitation. The vulnerability is not listed in CISA's KEV database. Exploitation requires controlling or injecting XML into the parse method, which is typically a remote or local attack surface depending on how the application handles input. Because the vulnerability does not return file contents directly, the primary risk is information disclosure about file existence and potential DoS; however, if a stream wrapper such as s3:// is registered, an attacker could exfiltrate file content. Overall risk is low but could be higher in environments where untrusted XML is processed.

Generated by OpenCVE AI on November 6, 2026 at 18:57 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Symfony to at least 5.4.56, 6.4.50, 7.4.23, or 8.1.11 to eliminate the XXE flaw.
  • Restrict the use of XmlUtils::parse to only trusted XML sources by validating or rejecting any document that contains a doctype before calling the parser.
  • Reconfigure legacy installations to disable DTD processing, such as removing $dom->validateOnParse or configuring libxml to block external entities when parsing XML.

Generated by OpenCVE AI on November 6, 2026 at 18:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 17:30:00 +0000

Type Values Removed Values Added
Description The Symfony Config component XmlUtils::parse() enables DTD validation before rejecting documents that carry a doctype, allowing XML external entity (XXE) injection in Symfony versions prior to 5.4.56, 6.x prior to 6.4.50, 7.x prior to 7.4.23, and 8.x prior to 8.1.11. A remote attacker who can supply XML to this method can determine whether local files exist, cause a denial of service, and, in some configurations, exfiltrate local file content via a crafted XML document whose doctype declares an external file:// entity. XmlUtils::parse() sets $dom->validateOnParse = true before calling loadXML() and only rejects documents carrying a doctype afterwards. Enabling DTD validation makes libxml resolve external entities during loadXML(), and LIBXML_NONET blocks http:// but not file://, so a file:// entity is read from disk before the doctype rejection runs. The content of the file is not returned to the caller, but the distinct libxml error for a missing path reveals whether a file exists, and an entity pointing at a large or slow file causes a denial of service. If the application registers a network-capable stream wrapper such as s3://, a parameter entity can also send the content of a local file to an external server. This is the same issue as CVE-2026-45071, which was fixed in the DomCrawler component but not in Config. Applications are affected if they pass untrusted XML to XmlUtils::parse() directly. The Symfony components that call it process developer-provided or operator-configured sources, such as configuration files and the XLIFF documents fetched by the translation providers.
Title Symfony: XXE (Local File Read) in Config XmlUtils::parse() via validateOnParse = true
First Time appeared Sensiolabs
Sensiolabs symfony
Weaknesses CWE-611
CPEs cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*
Vendors & Products Sensiolabs
Sensiolabs symfony
References
Metrics cvssV4_0

{'score': 2.3, 'vector': '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'}


Subscriptions

Sensiolabs Symfony
cve-icon MITRE

Status: PUBLISHED

Assigner: Checkmarx

Published:

Updated: 2026-11-06T20:29:12.981Z

Reserved: 2026-11-06T15:59:52.152Z

Link: CVE-2026-123824

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T18:18:05.140

Modified: 2026-11-06T18:18:05.140

Link: CVE-2026-123824

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T19:00:12Z

Weaknesses
  • CWE-611

    Improper Restriction of XML External Entity Reference