Name | CVE-2024-3572 |
Description | The scrapy/scrapy project is vulnerable to XML External Entity (XXE) attacks due to the use of lxml.etree.fromstring for parsing untrusted XML data without proper validation. This vulnerability allows attackers to perform denial of service attacks, access local files, generate network connections, or circumvent firewalls by submitting specially crafted XML data. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
python-scrapy (PTS) | bullseye | 2.4.1-2+deb11u1 | vulnerable |
| bookworm | 2.8.0-2 | vulnerable |
| sid, trixie | 2.12.0-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
python-scrapy | source | (unstable) | 2.11.1-1 | | | |
Notes
[bookworm] - python-scrapy <no-dsa> (Minor issue)
[bullseye] - python-scrapy <no-dsa> (Minor issue)
[buster] - python-scrapy <postponed> (Minor issue, DoS)
https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb
https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f (2.11.1)
The CVE and bounty descriptions discuss general XML issues (not specifically XXE), but
the bounty comments and the patch discuss a compression bomb.
https://github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7 (compression bomb)