CVE-2024-3572XML External Entity (XXE) Vulnerability in scrapy/scrapy
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.
What to do
Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | python-scrapy | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | python-scrapy | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | python-scrapy | Fix pending | 2.5.1-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-3572 |
| Ubuntu 20.04 | python-scrapy | Fix pending | 1.7.3-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-3572 |
| Ubuntu 18.04 | python-scrapy | Fix pending | 1.5.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-3572 |
| Ubuntu 16.04 | python-scrapy | Fix pending | UBUNTU-CVE-2024-3572 | |
| Debian 14 | python-scrapy | Fixed | 2.11.1-1 | DEBIAN-CVE-2024-3572 |
| Debian 13 | python-scrapy | Fixed | 2.11.1-1 | DEBIAN-CVE-2024-3572 |
| Debian 12 | python-scrapy | Fix pending | DEBIAN-CVE-2024-3572 | |
| PyPI library | scrapy | Fixed | 1.8.4 | PYSEC-2026-1907 |
What the vendor says
As published in the CVE record by @huntr_ai, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- scrapy/scrapy: affected: unspecified to before 2.11.1; fixed in
2.11.1
References
- https://huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb
- https://github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.