The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation.
Priority LOW 38CWE-835Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 6 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-835.
Summary
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 it matters now
EPSS 0.02737 86th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial numpy (PyPI): 1.13.3Red Hat: 6 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | numpy (PyPI) | before 1.13.3 | 1.13.3 | Patch available | GHSA-frgw-fgh6-9g52 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- numpy (PyPI) Vendor— Affected before 1.13.3 Fixed in 1.13.3 Patch available GHSA-frgw-fgh6-9g52
Remediation
- Fix · GHSA-frgw-fgh6-9g52 numpy (PyPI) Fixed in 1.13.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Enterprise 1 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise MRG 1 | Affected | No fix planned: Will not fix |
| Red Hat OpenStack Platform 11 (Ocata) | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
Timeline
- 2026-10-02 Threatist record created from CVE-2017-12852
- 2026-10-03 Alias added: GHSA-frgw-fgh6-9g52
References
Advisory 2
More Numpy vulnerabilities
- TI-2019-04516 An issue was discovered in NumPy before 1.16.3. CVSS 3.0CRITICAL 9.8
- TI-2021-13284 An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows… CVSS 3.1MEDIUM 5.3
- TI-2021-18253 Null Pointer Dereference vulnerability exists in numpy.sort in NumPy < and 1.19 in the… CVSS 3.1MEDIUM 5.3
- TI-2021-12844 A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int… CVSS 3.1MEDIUM 5.3
- TI-2021-18254 Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19… CVSS 3.1MEDIUM 5.5
- TI-2014-01452 (1) core/tests/test_memmap.py, (2) core/tests/test_multiarray.py, (3) f2py/f2py2e.py, and… CVSS 3.0MEDIUM 5.5
Sources
- CVE-2017-12852 · CVE Program
- CVE-2017-12852 · NVD
- FIRST EPSS
- GHSA-frgw-fgh6-9g52 · GitHub Advisory Database · CC BY 4.0
- CVE-2017-12852 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences