{"answers":{"affected":"5 open source packages ship an affected version, including scrapy. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3572 exists.","fix":"Upgrade scrapy to a fixed version for your release line: 1.8.4 or 2.11.1.","what":"CVE-2024-3572 is a high-severity vulnerability in scrapy/scrapy, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-3572 and fix it if it is affected.\n\nWhat it is: CVE-2024-3572 is a high-severity vulnerability in scrapy/scrapy, published on 16 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3572 exists.\n\nAffected packages and fixed versions:\n- scrapy (PyPI): affected all versions; fixed in 1.8.4, 2.11.1\n- scrapy (PyPI): affected all versions; fixed in 1.8.4\n- scrapy (PyPI): affected all versions; fixed in 1.8.4\n- scrapy (PyPI): affected from 2.0.0; fixed in 2.11.1\n- scrapy (PyPI): affected from 2.0.0; fixed in 2.11.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-3572/ (Markdown: https://insights.sbomify.com/CVE-2024-3572/index.md)","id":"CVE-2024-3572","markdown":"https://insights.sbomify.com/CVE-2024-3572/index.md","name":"CVE-2024-3572","record":{"aliases":["DEBIAN-CVE-2024-3572","GHSA-7j7m-v7m3-jqm7","PYSEC-2026-1907","UBUNTU-CVE-2024-3572"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web scraping library","requires_auth":"none","summary":"Attackers can exploit XML parsing flaws in Scrapy to read local files or cause denial of service via crafted XML input.","user_interaction":"not_required","vuln_class":"xxe"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"scrapy","vendor":"scrapy"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-409","name":"Improper Handling of Highly Compressed Data (Data Amplification)"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"XML External Entity (XXE) Vulnerability in scrapy/scrapy","id":"CVE-2024-3572","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xxe","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Local File Inclusion (LFI) via Scheme Confusion in mlflow/mlflow","id":"CVE-2024-3573"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.4","2.11.1"],"introduced":["0","2.0.0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"PYSEC-2026-1907"},{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-7j7m-v7m3-jqm7"},{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-7j7m-v7m3-jqm7"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2.0.0"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-7j7m-v7m3-jqm7"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2.0.0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-7j7m-v7m3-jqm7"}],"prev":{"headline":"Path Traversal in langchain-ai/langchain","id":"CVE-2024-3571"},"products":["scrapy/scrapy"],"published":"2024-04-16","related":[{"cvss_score":7.5,"headline":"Authorization Header Leakage in scrapy/scrapy on Scheme Change Redirects","id":"CVE-2024-1968","kev_date_added":null,"published":"2024-05-20"},{"cvss_score":7.5,"headline":"Authorization Header Leak During Cross-Domain Redirect in scrapy/scrapy","id":"CVE-2024-3574","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":7.5,"headline":"ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider","id":"CVE-2024-1892","kev_date_added":null,"published":"2024-02-28"},{"cvss_score":7.5,"headline":"Scrapy denial of service vulnerability","id":"CVE-2017-14158","kev_date_added":null,"published":"2017-09-05"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["scrapy"]},"summary":"Attackers can exploit XML parsing flaws in Scrapy to read local files or cause denial of service via crafted XML input.","url":"https://insights.sbomify.com/CVE-2024-3572/"}