CVEfocus › CVE database › CVE-2024-1892

CVE-2024-1892ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider

CVSS 7.5 HighEPSS 0.8% (higher than 52% of CVEs)Published 2024-02-28Updated 2024-08-11Assigner: @huntr_ai

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.

CWE-1333

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

3Fixed
6Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04python-scrapyNot affected
vulnerable_code_not_present
Ubuntu 25.10python-scrapyNot affected
vulnerable_code_not_present
Ubuntu 22.04python-scrapyFix pending2.5.1-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1892
Ubuntu 20.04python-scrapyFix pending1.7.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1892
Ubuntu 18.04python-scrapyFix pending1.5.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1892
Ubuntu 16.04python-scrapyFix pendingUBUNTU-CVE-2024-1892
Ubuntu 14.04python-scrapyFix pending
Debian 14python-scrapyFixed2.11.1-1DEBIAN-CVE-2024-1892
Debian 13python-scrapyFixed2.11.1-1DEBIAN-CVE-2024-1892
Debian 12python-scrapyFix pendingDEBIAN-CVE-2024-1892
PyPI libraryscrapyFixed1.8.4PYSEC-2024-162

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.

References

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.