CVE-2017-12852: The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation
CVE-2017-12852 is a high-severity flaw (CVSS 7.5) affecting numpy. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 2.7% (top 14%) |
| CISA exploited list | No |
| Weakness | CWE-835 |
| Published | 2017-08-15 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2017-12852?
numpy: upgrade to newer than 1.13.1. Exact commands for each OS are on this page.
Is CVE-2017-12852 being exploited?
CVE-2017-12852 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2017-12852 affect?
CVE-2017-12852 affects numpy. Severity is high (CVSS 7.5). 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.
How urgent is CVE-2017-12852?
Priority 58/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Pandas and NumPy vulnerabilities
Related CVEs
- CVE-2021-34141 MEDIUM 5.3 UPGRADE DOWNGRADE An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows attackers to trigger
- CVE-2021-41496 MEDIUM 5.5 UPGRADE Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to
- CVE-2021-41495 MEDIUM 5.3 UPGRADE Null Pointer Dereference vulnerability exists in numpy.sort in NumPy < and 1.19 in the PyArray_DescrNew func
- CVE-2021-33430 MEDIUM 5.3 UPGRADE A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when
- CVE-2019-6446 CRITICAL 9.8 UPGRADE MITIGATE An issue was discovered in NumPy before 1.16.3