CVE Vulnerabilities

CVE-2024-1892

Inefficient Regular Expression Complexity

Published: Feb 28, 2024 | Modified: Jan 10, 2025
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Affected Software

NameVendorStart VersionEnd Version
ScrapyScrapy*2.11.1 (excluding)
Python-scrapyUbuntubionic*
Python-scrapyUbuntuesm-apps/bionic*
Python-scrapyUbuntuesm-apps/focal*
Python-scrapyUbuntuesm-apps/jammy*
Python-scrapyUbuntuesm-apps/xenial*
Python-scrapyUbuntufocal*
Python-scrapyUbuntujammy*
Python-scrapyUbuntumantic*
Python-scrapyUbuntutrusty*
Python-scrapyUbuntuupstream*
Python-scrapyUbuntuxenial*

Extended Description

	  Attackers can create crafted inputs that
	  intentionally cause the regular expression to use
	  excessive backtracking in a way that causes the CPU
	  consumption to spike.

Potential Mitigations

References