Vulnerability · Published Apr 16, 2024 · Assigned by @huntr_ai

CVE-2024-3572XML External Entity (XXE) Vulnerability in scrapy/scrapy

High 7.5

In plain English

A high-severity security flaw in scrapy/scrapy from scrapy. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.8%top 42.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

The scrapy/scrapy project is vulnerable to XML External Entity (XXE) attacks due to the use of lxml.etree.fromstring for parsing untrusted XML data without proper validation. This vulnerability allows attackers to perform denial of service attacks, access local files, generate network connections, or circumvent firewalls by submitting specially crafted XML data.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-scrapyno fix listedDEBIAN-CVE-2024-3572
Debian:13python-scrapy2.11.1-1DEBIAN-CVE-2024-3572
Debian:14python-scrapy2.11.1-1DEBIAN-CVE-2024-3572
PyPIscrapy2.11.1GHSA-7j7m-v7m3-jqm7
PyPIscrapy1.8.4GHSA-7j7m-v7m3-jqm7
PyPIscrapy1.8.4, 2.11.1PYSEC-2026-1907

Affected products (as reported)

VendorProductVersions
scrapy scrapy/scrapy unspecified – before 2.11.1

Weakness: CWE-409 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References