Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.3
CVE-2026-45071: Symfony DOM Crawler may expose local files
CVE-2026-45071 · published 4 months ago
Summary
Older versions of Symfony's DOM Crawler component can be tricked into reading files from the server when it processes specially crafted XML data. This could let an attacker view files that should remain private. Update Symfony to version 5.4.52, 6.4.40, 7.4.12, 8.0.12 or later to stop the problem.
What to do
- Update symfony symfony to version 7.4.12.
- Update symfony symfony to version 8.0.12.
- Update symfony symfony/symfony to version 8.0.12.
- Update symfony dom-crawler to version 5.4.52.
- Update symfony symfony to version 5.4.52.
- Update symfony dom-crawler to version 6.4.40.
- Update symfony dom-crawler to version 7.4.12.
- Update symfony dom-crawler to version 8.0.12.
- Update symfony symfony to version 6.4.40.
- Update symfony symfony/dom-crawler to version 5.4.52.
- Update symfony symfony/symfony to version 5.4.52.
- Update symfony symfony/dom-crawler to version 6.4.40.
- Update symfony symfony/dom-crawler to version 7.4.12.
- Update symfony symfony/dom-crawler to version 8.0.12.
- Update symfony symfony/symfony to version 6.4.40.
- Update symfony symfony/symfony to version 7.4.12.
- Update debian symfony to version 5.4.53+dfsg-0+deb12u1.
- Update debian symfony to version 6.4.41+dfsg-0+deb13u1.
- Update debian symfony to version 7.4.12+dfsg-1.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| Ubuntu:26.04:LTS | canonical | symfony | All versions |
| composer | symfony | symfony |
>= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 < 5.4.52 >= 6.0.0, < 6.4.40 Fix: upgrade to 7.4.12
|
| Packagist | symfony | symfony/symfony |
>= 8.0.0, < 8.0.12 < 5.4.52 >= 6.0.0, < 6.4.40 >= 7.0.0, < 7.4.12 Fix: upgrade to 8.0.12
|
| – | symfony | dom-crawler | < 5.4.52 |
| – | sensiolabs | symfony |
>= 8.0.0, < 8.0.12 < 5.4.52 >= 6.0.0, < 6.4.40 >= 7.0.0, < 7.4.12 cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:* |
| Debian:11 | debian | symfony | All versions |
| Debian:12 | debian | symfony |
< 5.4.53+dfsg-0+deb12u1 Fix: upgrade to 5.4.53+dfsg-0+deb12u1
|
| Debian:13 | debian | symfony |
< 6.4.41+dfsg-0+deb13u1 Fix: upgrade to 6.4.41+dfsg-0+deb13u1
|
| composer | symfony | dom-crawler |
< 5.4.52 >= 6.0.0, < 6.4.40 >= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 Fix: upgrade to 5.4.52
|
| Packagist | symfony | symfony/dom-crawler |
< 5.4.52 >= 6.0.0, < 6.4.40 >= 7.0.0, < 7.4.12 >= 8.0.0, < 8.0.12 Fix: upgrade to 5.4.52
|
| – | symfony | symfony | < 5.4.52 |
| Debian:14 | debian | symfony |
< 7.4.12+dfsg-1 Fix: upgrade to 7.4.12+dfsg-1
|
| Ubuntu:16.04:LTS | canonical | symfony | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | symfony | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | symfony | All versions |
| Ubuntu:Pro:22.04:LTS | canonical | symfony | All versions |
| Ubuntu:Pro:24.04:LTS | canonical | symfony | All versions |
| Ubuntu:25.10 | canonical | symfony | All versions |
Original advisory text
Symfony: XXE (Local File Disclosure) in DomCrawler::addXmlContent() via validateOnParse = true
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.
References
- https://security-tracker.debian.org/tracker/CVE-2026-45071 Vendor Advisory
- https://github.com/symfony/symfony/security/advisories/GHSA-x6g4-fwcc-jj8w Vendor Advisory
- https://github.com/symfony/symfony/commit/eea5fd7488cbdc241da4ce242344b7d9a3ecdf... Patch
- https://symfony.com/cve-2026-45071
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/...
- https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/dom-craw...
- https://github.com/advisories/GHSA-x6g4-fwcc-jj8w
- https://github.com/symfony/symfony Product
- https://ubuntu.com/security/CVE-2026-45071 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-45071 Third Party Advisory
- https://symfony.com/blog/cve-2026-45071-xxe-local-file-disclosure-in-domcrawler-... Third Party Advisory
- https://github.com/symfony/symfony/releases/tag/v5.4.52 URL
- https://github.com/symfony/symfony/releases/tag/v6.4.40 URL
- https://github.com/symfony/symfony/releases/tag/v7.4.12 URL
- https://github.com/symfony/symfony/releases/tag/v8.0.12 URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45071... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-45071 Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-611XML External Entity (XXE)
Timeline
Published14 Jul 2026
Updated21 Nov 2026
First seen21 May 2026
Sources
DEBIAN-CVE-2026-45071 · OSV
CVE-2026-45071 · MITRE
CVE-2026-45071 · NVD
GHSA-x6g4-fwcc-jj8w · OSV
GHSA-x6g4-fwcc-jj8w · GHSA
UBUNTU-CVE-2026-45071 · OSV
CVE-2026-45071 · OSV
Track software like this
Free during beta