{"answers":{"affected":"3 open source packages ship an affected version, including numpy. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-12852 in the wild and no public exploit code.","fix":"Upgrade numpy to 1.13.3 or later.","what":"CVE-2017-12852 is a high-severity denial of service vulnerability in n/a, published on 15 Aug 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-12852 and fix it if it is affected.\n\nWhat it is: CVE-2017-12852 is a high-severity denial of service vulnerability in n/a, published on 15 Aug 2017. 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-2017-12852 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- numpy (PyPI): affected all versions; fixed in 1.13.3\n- numpy (PyPI): affected all versions; fixed in 1.13.3\n- numpy (PyPI): affected all versions; fixed in 1.13.3\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-2017-12852/ (Markdown: https://insights.sbomify.com/CVE-2017-12852/index.md)","id":"CVE-2017-12852","markdown":"https://insights.sbomify.com/CVE-2017-12852/index.md","name":"CVE-2017-12852","record":{"aliases":["GHSA-frgw-fgh6-9g52","PYSEC-2017-1","SUSE-RU-2017:3010-1","SUSE-SU-2022:3954-1","UBUNTU-CVE-2017-12852"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python numerical library","requires_auth":"none","summary":"Attackers can cause a denial of service by passing empty lists or arrays to the numpy.pad function, triggering an infinite loop.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"numpy","vendor":"numpy"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","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-835","name":"Loop with Unreachable Exit Condition"}],"description":"The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation. An empty list or ndarray will stick into an infinite loop, which can allow attackers to cause a DoS attack.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for HPC 12","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Software Development Kit 12 SP5"],"exploits":{"exploitdb":0,"first_seen":"2017-09-30","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-09-30T05:21:48Z","kind":"github_poc","ref":"https://github.com/BT123/numpy-1.13.1","stars":0,"title":"test the CVE-2017-12852 in numpy v1.13.1 and v1.13.3 has fixed the bug "}],"tier":"poc_unverified"},"has_fix":true,"headline":"Numpy missing input validation","id":"CVE-2017-12852","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2017"},"n_packages":7,"n_references":2,"next":{"headline":"Cross-site request forgery in n/a","id":"CVE-2017-12853"},"packages":[{"ecosystem":"PyPI","fixed":["1.13.3"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":null,"source":"GHSA-frgw-fgh6-9g52"},{"ecosystem":"PyPI","fixed":["1.13.3"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:pypi/numpy","source":"GHSA-frgw-fgh6-9g52"},{"ecosystem":"PyPI","fixed":["1.13.3"],"introduced":["0"],"last_affected":[],"package":"numpy","purl":"pkg:pypi/numpy","source":"PYSEC-2017-1"},{"ecosystem":"SUSE:Linux Enterprise Module for HPC 12","fixed":["1.13.3-4.6.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy_1_13_3-gnu-hpc","purl":"pkg:rpm/suse/python-numpy_1_13_3-gnu-hpc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20HPC%2012","source":"SUSE-RU-2017:3010-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["1.8.0-5.19.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2022:3954-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["1.8.0-5.19.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2022:3954-1"},{"ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","fixed":["1.8.0-5.19.1"],"introduced":["0"],"last_affected":[],"package":"python-numpy","purl":"pkg:rpm/suse/python-numpy\u0026distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5","source":"SUSE-SU-2022:3954-1"}],"prev":{"headline":"Business logic in n/a","id":"CVE-2017-12851"},"products":["n/a"],"published":"2017-08-15","related":[{"cvss_score":5.5,"headline":"Buffer Copy without Checking Size of Input in NumPy","id":"CVE-2021-41496","kev_date_added":null,"published":"2021-12-17"},{"cvss_score":5.5,"headline":"Arbitrary file write in NumPy","id":"CVE-2014-1858","kev_date_added":null,"published":"2018-01-08"},{"cvss_score":5.3,"headline":"NumPy Buffer Overflow (Disputed)","id":"CVE-2021-33430","kev_date_added":null,"published":"2021-12-17"},{"cvss_score":5.3,"headline":"Incorrect Comparison in NumPy","id":"CVE-2021-34141","kev_date_added":null,"published":"2021-12-17"},{"cvss_score":5.3,"headline":"NumPy NULL Pointer Dereference","id":"CVE-2021-41495","kev_date_added":null,"published":"2021-12-17"}],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can cause a denial of service by passing empty lists or arrays to the numpy.pad function, triggering an infinite loop.","url":"https://insights.sbomify.com/CVE-2017-12852/"}