{"answers":{"affected":"5 open source packages ship an affected version, including scrapy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-1892 in the wild and no public exploit code.","fix":"Upgrade scrapy to a fixed version for your release line: 1.8.4 or 2.11.1.","what":"CVE-2024-1892 is a high-severity denial of service vulnerability in scrapy/scrapy, published on 28 Feb 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-1892 and fix it if it is affected.\n\nWhat it is: CVE-2024-1892 is a high-severity denial of service vulnerability in scrapy/scrapy, published on 28 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-1892 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\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 all versions; fixed in 2.11.1\n- scrapy (PyPI): affected from 2; fixed in 2.11.1\n- scrapy (PyPI): affected from 2; 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-1892/ (Markdown: https://insights.sbomify.com/CVE-2024-1892/index.md)","id":"CVE-2024-1892","markdown":"https://insights.sbomify.com/CVE-2024-1892/index.md","name":"CVE-2024-1892","record":{"aliases":["DEBIAN-CVE-2024-1892","GHSA-cc65-xxvf-f7r9","PYSEC-2024-162","UBUNTU-CVE-2024-1892","openSUSE-SU-2024:13802-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web scraping library","requires_auth":"none","summary":"Attackers can cause denial of service in Scrapy's XMLFeedSpider by crafting malicious XML content that triggers inefficient regular expression processing.","user_interaction":"not_required","vuln_class":"denial_of_service"},"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-1333","name":"Inefficient Regular Expression Complexity"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ReDoS Vulnerability in scrapy/scrapy's XMLFeedSpider","id":"CVE-2024-1892","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Easy Property Listings \u003c= 3.5.2 - Authenticated(Contributor+) SQL Injection via Shortcode","id":"CVE-2024-1893"},"packages":[{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-cc65-xxvf-f7r9"},{"ecosystem":"PyPI","fixed":["1.8.4"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-cc65-xxvf-f7r9"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["0"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"PYSEC-2024-162"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2"],"last_affected":[],"package":"scrapy","purl":null,"source":"GHSA-cc65-xxvf-f7r9"},{"ecosystem":"PyPI","fixed":["2.11.1"],"introduced":["2"],"last_affected":[],"package":"scrapy","purl":"pkg:pypi/scrapy","source":"GHSA-cc65-xxvf-f7r9"}],"prev":{"headline":"Stored Cross Site Scripting","id":"CVE-2024-1891"},"products":["scrapy/scrapy"],"published":"2024-02-28","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":"XML External Entity (XXE) Vulnerability in scrapy/scrapy","id":"CVE-2024-3572","kev_date_added":null,"published":"2024-04-16"},{"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":"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-11","vendors":["scrapy"]},"summary":"Attackers can cause denial of service in Scrapy's XMLFeedSpider by crafting malicious XML content that triggers inefficient regular expression processing.","url":"https://insights.sbomify.com/CVE-2024-1892/"}