Vulnerability · Published Apr 16, 2024 · Assigned by @huntr_ai
CVE-2024-3572XML External Entity (XXE) Vulnerability in scrapy/scrapy
High 7.5
In plain English
A high-severity security flaw in scrapy/scrapy from scrapy. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-scrapy | no fix listed | DEBIAN-CVE-2024-3572 |
| Debian:13 | python-scrapy | 2.11.1-1 | DEBIAN-CVE-2024-3572 |
| Debian:14 | python-scrapy | 2.11.1-1 | DEBIAN-CVE-2024-3572 |
| PyPI | scrapy | 2.11.1 | GHSA-7j7m-v7m3-jqm7 |
| PyPI | scrapy | 1.8.4 | GHSA-7j7m-v7m3-jqm7 |
| PyPI | scrapy | 1.8.4, 2.11.1 | PYSEC-2026-1907 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| scrapy | scrapy/scrapy | unspecified – before 2.11.1 |
Weakness: CWE-409 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H