CVE-2026-45071

Symfony: XXE (Local File Disclosure) in DomCrawler::addXmlContent() via validateOnParse = true

HIGH 8.7

At a glance

Source
NVD
EPSS
EPSS 0.57 % · percentile 47 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Analyzed

Description

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, Crawler::addXmlContent() set DOMDocument::$validateOnParse = true before loadXML(), re-enabling external entity resolution and allowing attacker-supplied XML to expand file:// entities such as local files. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

Weaknesses (CWE)

  • CWE-611 — Improper Restriction of XML External Entity Reference

References

Scores

VersionScoreVectorScored by
CVSS 4.0HIGH 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NGitHub_M
CVSS 4.0HIGH 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD · security-advisories@github.com (Secondary)
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
symfony · symfonyaffected < 5.4.52 ; affected >= 6.0.0-BETA1, < 6.4.40 ; affected >= 7.0.0-BETA1, < 7.4.12 ; affected >= 8.0.0-BETA1, < 8.0.12
symfony · dom-crawleraffected < 5.4.52 ; affected >= 6.0.0-BETA1, < 6.4.40 ; affected >= 7.0.0-BETA1, < 7.4.12 ; affected >= 8.0.0-BETA1, < 8.0.12

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD