PT-2024-18399 · Scrapy+3 · Scrapy+3

Published

2024-02-15

·

Updated

2025-05-05

·

CVE-2024-1892

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Scrapy versions 2.6.0 through 2.11.0 Scrapy versions prior to 1.8.4
Description A Regular Expression Denial of Service (ReDoS) vulnerability exists in the XMLFeedSpider class of the 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. Handling a malicious response could cause extreme CPU and memory usage during the parsing of its content, due to the use of vulnerable regular expressions for that parsing.
Recommendations For Scrapy versions 2.6.0 through 2.11.0, upgrade to Scrapy 2.11.1. For Scrapy versions prior to 1.8.4, upgrade to Scrapy 1.8.4. As a temporary workaround for XMLFeedSpider, switch the node iterator to xml or html. For open in browser, before using the function, either manually review the response content to discard a ReDoS attack or manually define the base tag to avoid its automatic definition by open in browser later.

Exploit

Fix

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-1892
GHSA-7C9G-VJ9M-8PM6
GHSA-CC65-XXVF-F7R9
OPENSUSE-SU-2024:13802-1
PYSEC-2024-162
USN-7476-1

Affected Products

Debian
Linuxmint
Scrapy
Ubuntu