CVE-2017-12852
Numpy 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
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.
- Record
CVE-2017-12852- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-835
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2017-12852- Updated
- 2026-11-02
EUVDEUVD-2017-0080 No score
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.
- Record
EUVD-2017-0080- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-frgw-fgh6-9g52
7.5
Numpy 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.
- Record
GHSA-frgw-fgh6-9g52- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
OSV
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.
- Record
CVE-2017-12852- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-frgw-fgh6-9g52
7.5
Numpy 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.
- Record
GHSA-frgw-fgh6-9g52- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-835
- Updated
- 2026-11-02
Show 8 moreShow less
OSVUBUNTU-CVE-2017-12852
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.
- Record
UBUNTU-CVE-2017-12852- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11243-1 No score
python38-numpy-1.21.2-1.1 on GA media
These are all security issues fixed in the python38-numpy-1.21.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11243-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13820-1 No score
python310-numpy-1.26.2-5.1 on GA media
These are all security issues fixed in the python310-numpy-1.26.2-5.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13820-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14311-1 No score
python310-numpy1-1.26.4-1.1 on GA media
These are all security issues fixed in the python310-numpy1-1.26.4-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14311-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:11371-1 No score
python313-numpy-2.4.6-1.1 on GA media
These are all security issues fixed in the python313-numpy-2.4.6-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:11371-1- Updated
- 2026-11-02
OSVPYSEC-2017-1 No score
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.
- Record
PYSEC-2017-1- Updated
- 2026-11-02
OSVSUSE-RU-2017:3010-1 No score
Initial release of python-numpy for HPC (v1.13.3, gcc)
This update introduces the NumPy packages version 1.13.3 built for environment modules to the HPC (module FATE#321709).
NumPy is a general-purpose array-processing package for Python designed to manipulate large multi-dimensional arrays of arbitrary records.
It also provides basic facilities for discrete fourier transform, basic linear algebra and random number generation.
- Record
SUSE-RU-2017:3010-1- Updated
- 2026-11-02
OSVSUSE-SU-2022:3954-1 No score
Security update for python-numpy
This update for python-numpy fixes the following issues:
- CVE-2017-12852: Fixed missing input validation leading to infinite loops (bsc#1053963).
Bugfixes:
- Use update-alternatives for /usr/bin/f2py (bsc#1199500).
- Record
SUSE-SU-2022:3954-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
numpyPyPI |
before 1.13.3 | 1.13.3 |
numpyPyPI |
before 1.13.3, plus listed versions 0.9.60.9.81.01.0.31.0.4 Show 40 moreShow less1.0b11.0b41.0b51.0rc11.0rc21.0rc31.1.11.10.01.10.11.10.21.10.31.10.41.11.01.11.11.11.21.11.31.12.01.12.11.13.01.13.11.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.6.11.6.21.7.01.7.11.7.21.8.01.8.11.8.21.9.01.9.11.9.21.9.3 |
1.13.3 |
numpyPyPI |
before 1.13.3, plus listed versions 0.9.60.9.81.01.0.31.0.4 Show 42 moreShow less1.0b11.0b41.0b51.0rc11.0rc21.0rc31.1.11.10.01.10.11.10.21.10.31.10.41.11.01.11.11.11.21.11.31.12.01.12.11.13.01.13.0rc11.13.0rc21.13.11.2.01.2.11.3.01.4.01.4.11.5.01.5.11.6.01.6.11.6.21.7.01.7.11.7.21.8.01.8.11.8.21.9.01.9.11.9.21.9.3 |
1.13.3 |
python-numpy_1_13_3-gnu-hpcSUSE:Linux Enterprise Module for HPC 12 |
before 1.13.3-4.6.1 | 1.13.3-4.6.1 |
python-numpySUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 1.8.0-5.19.1 | 1.8.0-5.19.1 |
python-numpySUSE:Linux Enterprise Server 12 SP5 |
before 1.8.0-5.19.1 | 1.8.0-5.19.1 |
python-numpySUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 1.8.0-5.19.1 | 1.8.0-5.19.1 |
python-numpyUbuntu:16.04:LTS |
All versions, plus listed versions 1:1.8.2-1ubuntu21:1.8.2-1ubuntu31:1.10.4-2ubuntu21:1.11.0-1ubuntu1 |
None known |
python-numpyUbuntu:18.04:LTS |
All versions, plus listed versions 1:1.12.1-3.1ubuntu41:1.13.3-0ubuntu11:1.13.3-1ubuntu11:1.13.3-1ubuntu21:1.13.3-2ubuntu1 |
None known |
python-numpyopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 1.21.2-1.1 | 1.21.2-1.1 |
python-numpyopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 1.26.2-5.1 | 1.26.2-5.1 |
python-numpy1openSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 1.26.4-1.1 | 1.26.4-1.1 |
python-numpyopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 2.4.6-1.1 | 2.4.6-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | BT123/numpy-1.13.1 | 2017-09-30 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-12852 is a high vulnerability (CVSS 7.5) in Numpy, published August 15, 2017. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.74%, the 86th percentile. Fixed in numpy 1.13.3.
References
github.com/BT123/testcasesForMyRequest/tree/master/CVE-2017-12852
github.com/numpy/numpy/issues/9560
nvd.nist.gov/vuln/detail/CVE-2017-12852
github.com/numpy/numpy/releases/tag/v1.13.3
github.com/advisories/GHSA-frgw-fgh6-9g52
github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2017-1.yaml
Show 13 moreShow less
github.com/numpy/numpy
suse.com/support/update/announcement//suse-ru-20173010-1
bugzilla.suse.com/1053963
bugzilla.suse.com/1066748
suse.com/security/cve/CVE-2017-12852
suse.com/support/update/announcement/2022/suse-su-20223954-1
bugzilla.suse.com/1199500
ubuntu.com/security/CVE-2017-12852
cve.org/CVERecord?id=CVE-2017-12852
suse.com/security/cve/CVE-2019-6446
suse.com/security/cve/CVE-2021-33430
suse.com/security/cve/CVE-2021-41495
suse.com/security/cve/CVE-2021-41496