CVE-2017-12852 json
Numpy missing input validation
published 2017-08-15 9 y ago modified 2026-06-17 4 mo ago also GHSA-frgw-fgh6-9g52 , PYSEC-2017-1 , EUVD-2017-0080
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.7%
- EPSS 2.7% chance of exploitation in 30 days, percentile 86%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi numpy 1.13.3
- python-numpy SLES for SAP 12 SP5, SLES 12 SP5, SLE Software Development Kit 12 SP5 1.8.0-5.19.1
- python-numpy_1_13_3-gnu-hpc SLE Module for HPC 12 1.13.3-4.6.1
suse advisories SUSE-SU-2022:3954-1SUSE-RU-2017:3010-1
- python-numpy openSUSE Tumbleweed 2.4.6-1.1
- python-numpy1 openSUSE Tumbleweed 1.26.4-1.1
- python-numpy openSUSE Tumbleweed 1.21.2-1.1
- python-numpy openSUSE Tumbleweed 1.26.2-5.1
opensuse advisories openSUSE-SU-2026:11371-1openSUSE-SU-2024:14311-1openSUSE-SU-2024:11243-1openSUSE-SU-2024:13820-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-12852 updated cvss 4.0
numpy: Missing input validation on empty list or ndarray in numpy.pad function
-
Red Hat OpenShift Enterprise 1 python27-numpy Red Hat Enterprise Linux 6 numpy, numpy-f2py Red Hat Enterprise Linux 7 numpy, numpy-f2py Red Hat Enterprise MRG 1 numpy Red Hat OpenStack Platform 11 (Ocata) numpy Red Hat Software Collections python27-numpy, rh-python34-numpy, rh-python35-numpy, python27-numpy-f2py, rh-python34-numpy-f2py, rh-python35-numpy-f2pyaffected: no fix planned “Will not fix”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.74% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/numpy/numpy/issues/9560#issuecomment-322395292 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | numpy | <1.13.3 |
1.13.3 |
Classification
- Weakness
-
- CWE-835 Loop with Unreachable Exit Condition
References
-
github.com
/numpy/numpy/issues/9560#issuecomment-322395292
web, exploit, third-party-advisory, report
-
github.com
/BT123/testcasesForMyRequest/tree/master/CVE-2017-12852
web
-
nvd.nist.gov
/vuln/detail/CVE-2017-12852
advisory
-
github.com
/advisories/GHSA-frgw-fgh6-9g52
advisory
-
github.com
/numpy/numpy
package
-
github.com
/numpy/numpy/releases/tag/v1.13.3
web
-
github.com
/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2017-1.yaml
web
Sources
- CVE List CVE-2017-12852
- GitHub Advisory GHSA-frgw-fgh6-9g52
- NVD CVE-2017-12852
- OSV PYSEC-2017-1
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.