scrapy/scrapy: Improper Handling of Highly Compressed Data (Data Amplification)
CVE-2024-3572 is a high-severity improper handling of highly compressed data (data amplification) vulnerability in scrapy/scrapy from Scrapy, with a CVSS 3.0 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists version 2.11.1 as the first without the flaw, so updating scrapy/scrapy to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.81% chance of exploitation within 30 days, higher than 58% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update scrapy/scrapy to 2.11.1 or a later version.
- Update scrapy to 2.11.1 or a later version.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Scrapy | scrapy/scrapy | before 2.11.1 | 2.11.1 |
| Scrapy | scrapy | before 2.11.1 | 2.11.1 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by CNA (huntr.dev).
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Handling of Highly Compressed Data (Data Amplification)
The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.
More Improper Handling of Highly Compressed Data (Data Amplification) vulnerabilities (CWE-409)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: poc, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
Technical write-ups (may include proof of concept)
- huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabbExploit, Issue Tracking, Third Party Advisory
Other vulnerabilities in scrapy/scrapy
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Recent Improper Handling of Highly Compressed Data (Data Amplification) vulnerabilities
- 7.5 High severity
Spotted an error? Tell us.