CVE-2024-1892 json
ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider
published 2024-02-15 2 y ago modified 2026-06-17 4 mo ago also GHSA-cc65-xxvf-f7r9 , PYSEC-2024-162 , EUVD-2024-0162
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 46%
- public exploits
- 0
- none known
Summary
A Regular Expression Denial of Service (ReDoS) vulnerability exists in the XMLFeedSpider class of the scrapy/scrapy project, specifically in the parsing of XML content. By crafting malicious XML content that exploits inefficient regular expression complexity used in the parsing process, an attacker can cause a denial-of-service (DoS) condition. This vulnerability allows for the system to hang and consume significant resources, potentially rendering services that utilize Scrapy for XML processing unresponsive.
Patch / fix
- pypi scrapy 1.8.4, 2.11.1
- scrapy scrapy/scrapy 2.11
- scrapy scrapy 2.11
- python-scrapy Debian 14, Debian 13 2.11.1-1
debian advisories DEBIAN-CVE-2024-1892
- python-scrapy Ubuntu Pro 18.04 LTS 1.5.0-1ubuntu0.1~esm1
- python-scrapy Ubuntu Pro 20.04 LTS 1.7.3-1ubuntu0.1~esm1
- python-scrapy Ubuntu Pro 22.04 LTS 2.5.1-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2024-1892
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.55% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/271f94f2-1e05-4616-ac43-41752389e26b referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | scrapy | >=2, <2.11.1 <1.8.4 <2.11.1 |
2.11.1 1.8.4 |
Affected products
- scrapy scrapy/scrapy
- scrapy scrapy
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/scrapy/scrapy/commit/479619b340f197a8f24c5db45bc068fb8755f2c5
web, patch
-
huntr.com
/bounties/271f94f2-1e05-4616-ac43-41752389e26b
web, exploit, issue-tracking, patch, third-party-advisory, evidence, report
-
github.com
/scrapy/scrapy/commit/73e7c0ed011a0565a1584b8052ec757b54e5270b
web
-
github.com
/scrapy/scrapy/security/advisories/GHSA-cc65-xxvf-f7r9
web
-
docs.scrapy.org
/en/latest/news.html#scrapy-1-8-4-2024-02-14
web
-
docs.scrapy.org
/en/latest/news.html#scrapy-2-11-1-2024-02-14
web
-
github.com
/pypa/advisory-database/tree/main/vulns/scrapy/PYSEC-2024-162.yaml
web
-
github.com
/scrapy/scrapy
package
-
github.com
/advisories/GHSA-cc65-xxvf-f7r9
advisory
Sources
- CVE List CVE-2024-1892
- GitHub Advisory GHSA-cc65-xxvf-f7r9
- NVD CVE-2024-1892
- OSV PYSEC-2024-162
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.