{"id":"CVE-2017-12852","aliases":["GHSA-frgw-fgh6-9g52","PYSEC-2017-1"],"kind":"cve","tier":"cold","status":"published","title":"Numpy missing input validation","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.","ai_summary":null,"severity":"high","cvss":{"score":7.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD"},"scores":[{"score":7.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd"},{"score":5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"nvd"}],"cwe":["CWE-835"],"remote":true,"remote_unauth":true,"epss":{"score":0.02737,"percentile":0.86543,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"ecosystem":"PyPI","name":"numpy","affected":"< 1.13.3","fixed":["1.13.3"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade numpy to 1.13.3 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12852","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-frgw-fgh6-9g52","kind":"vendor"},{"url":"https://github.com/numpy/numpy/issues/9560#issuecomment-322395292","kind":"exploit"},{"url":"https://github.com/BT123/testcasesForMyRequest/tree/master/CVE-2017-12852","kind":"other"},{"url":"https://github.com/numpy/numpy","kind":"other"},{"url":"https://github.com/numpy/numpy/releases/tag/v1.13.3","kind":"other"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2017-1.yaml","kind":"other"}],"workarounds":null,"vendors":["numpy"],"products":["numpy"],"cpes":["cpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:*"],"published_at":"2017-08-15T16:00:00.000Z","modified_at":"2026-06-17T01:04:01.700Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2017-12852"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-frgw-fgh6-9g52","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2017-1","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2017-12852","markdown":"https://flawdb.com/CVE-2017-12852.md","json":"https://flawdb.com/api/v1/entries/CVE-2017-12852"}}