CVE-2017-12852
HIGH 7.5CVSS 3.0Numpy missing input validation
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.
- Published
- 15 Aug 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-835
- Also known as
- GHSA-frgw-fgh6-9g52PYSEC-2017-1
- Sources
- NVDJSONOSV GHSA-frgw-fgh6-9g52JSONOSV PYSEC-2017-1JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | numpy | numpycpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:* |
<= 1.13.1 | |
| OSV | PyPI | numpy | < 1.13.3 | 1.13.3 |
References
- https://github.com/BT123/testcasesForMyRequest/tree/master/CVE-2017-12852 · WEB
- https://github.com/numpy/numpy/issues/9560#issuecomment-322395292 · Exploit, Third Party Advisory, WEB, REPORT
- https://nvd.nist.gov/vuln/detail/CVE-2017-12852 · ADVISORY
- https://github.com/advisories/GHSA-frgw-fgh6-9g52 · ADVISORY
- https://github.com/numpy/numpy · PACKAGE
- https://github.com/numpy/numpy/releases/tag/v1.13.3 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2017-1.yaml · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 15 Aug 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Aug 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)