همهٔ گزارش‌ها
کم

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

متن اصلی

نسخه‌های متأثر

بازه‌ها نیاز به بررسی دارند.

نسخه‌های متأثر
>= 6.0.0, < 6.4.40
نسخهٔ اصلاح‌شده
6.4.40
نسخه‌های متأثر
< 5.4.52
نسخهٔ اصلاح‌شده
5.4.52
نسخه‌های متأثر
>= 7.0.0, < 7.4.12
نسخهٔ اصلاح‌شده
7.4.12
نسخه‌های متأثر
>= 8.0.0, < 8.0.12
نسخهٔ اصلاح‌شده
8.0.12
نسخه‌های متأثر
>=2.0.0,<3.0.0|>=3.0.0,<4.0.0|>=4.0.0,<5.0.0|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.3.0|>=5.3.0,<5.4.0|>=5.4.0,<5.4.52|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.40|>=7.0.0,<7.1.0|>=7.1.0,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.12|>=8.0.0,<8.0.12
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
>= 8.0.0, < 8.0.12
نسخهٔ اصلاح‌شده
8.0.12
نسخه‌های متأثر
>=2.0.0,<3.0.0|>=3.0.0,<4.0.0|>=4.0.0,<5.0.0|>=5.0.0,<5.1.0|>=5.1.0,<5.2.0|>=5.2.0,<5.3.0|>=5.3.0,<5.4.0|>=5.4.0,<5.4.52|>=6.0.0,<6.1.0|>=6.1.0,<6.2.0|>=6.2.0,<6.3.0|>=6.3.0,<6.4.0|>=6.4.0,<6.4.40|>=7.0.0,<7.1.0|>=7.1.0,<7.2.0|>=7.2.0,<7.3.0|>=7.3.0,<7.4.0|>=7.4.0,<7.4.12|>=8.0.0,<8.0.12
نسخهٔ اصلاح‌شده
اعلام نشده
نسخه‌های متأثر
< 5.4.52
نسخهٔ اصلاح‌شده
5.4.52
نسخه‌های متأثر
>= 6.0.0, < 6.4.40
نسخهٔ اصلاح‌شده
6.4.40
نسخه‌های متأثر
>= 7.0.0, < 7.4.12
نسخهٔ اصلاح‌شده
7.4.12

بهره‌برداری

CVE-2026-45071

احتمال بهره‌برداری در ۳۰ روز آینده: 0.57%

FIRST EPSS · ۱۴۰۵/۰۸/۲۹

شرح آسیب‌پذیری

Description

symfony/dom-crawler provides the Crawler class for navigating HTML/XML documents with CSS/XPath selectors; symfony/browser-kit's HttpBrowser uses it to parse fetched pages.

Crawler::addXmlContent() sets DOMDocument::$validateOnParse = true before calling loadXML(). Setting validateOnParse re-enables libxml's DTD subset processing, including external entity resolution, even though LIBXML_NONET is passed. LIBXML_NONET blocks network fetches but not file:// entities. An attacker-supplied XML document with a SYSTEM "file:///etc/passwd" entity is therefore expanded.

Resolution

The Crawler::addXmlContent method does not set the validateOnParse flag anymore.

The patch for this issue is available here for branch 5.4.

Credits

Symfony would like to thank Claude Mythos Preview (via Project Glasswing) for reporting the issue and providing the fix.

پیوندها