CVE-2024-1892: Scrapy vulnerable to ReDoS via XMLFeedSpider

CVE-2024-1892 · Severity: low · CVSS 3.1 · Published 2024-02-28

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.

Technologies: scrapy (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-1892 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-1892 being exploited in the wild.
How severe is CVE-2024-1892?
Low severity, with a CVSS score of 3.1, published 28 February 2024.
Which products and versions are affected?
scrapy (PyPI) ECOSYSTEM:introduced=2,fixed=2.11.1, GIT:introduced=0,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5|ECOSYSTEM:introduced=0,fixed=2.11.1.
Is there a fix for CVE-2024-1892?
Yes. scrapy (PyPI): upgrade to 2.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-1892?
Check whether you run scrapy (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • scrapy (PyPI): upgrade to 2.11.1 or later
    pip install "scrapy>=2.11.1"

Affected products

  • scrapy (PyPI) ECOSYSTEM:introduced=2,fixed=2.11.1, GIT:introduced=0,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5,fixed=479619b340f197a8f24c5db45bc068fb8755f2c5|ECOSYSTEM:introduced=0,fixed=2.11.1

Identifiers

  • CVE-2024-1892
  • GHSA-cc65-xxvf-f7r9
  • PYSEC-2024-162

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.