CVE-2024-3572
Scrapy vulnerability
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 products
Scrapy. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Scrapy runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/scrapy/scrapy/commit/809bfac4890f75fc73607318a04d2ccba71b3d9f · Patch
- huntr.com/bounties/c4a0fac9-0c5a-4718-9ee4-2d06d58adabb · Exploit
- github.com/scrapy/scrapy/security/advisories/GHSA-7j7m-v7m3-jqm7
- github.com/scrapy/scrapy/commit/71b8741e3607cfda2833c7624d4ada87071aa8e5
- docs.scrapy.org/en/latest/news.html#scrapy-2-11-1-2024-02-14
- nvd.nist.gov/vuln/detail/CVE-2024-3572
- github.com/advisories/GHSA-7j7m-v7m3-jqm7
- nvd.nist.gov/vuln/detail/CVE-2024-3572
- cve.org/CVERecord?id=CVE-2024-3572
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.