Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | python-numpy | No fix yet | — |
| Ubuntu 16.04 LTS | python-numpy | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | python-numpy | 1.8.0-5.19.1 | SUSE-SU-2022:3954-1 |
| SLES 12 | python-numpy_1_13_3-gnu-hpc | 1.13.3-4.6.1 | SUSE-RU-2017:3010-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | python-numpy | 1.8.0-5.19.1 | SUSE-SU-2022:3954-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-numpy | 1.21.2-1.1 | openSUSE-SU-2026:11371-1, openSUSE-SU-2024:13820-1, openSUSE-SU-2024:11243-1 |
| openSUSE Tumbleweed | python-numpy1 | 1.26.4-1.1 | openSUSE-SU-2024:14311-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
BT123/numpy-1.13.1 ★ 0 · Sep 30, 2017
test the CVE-2017-12852 in numpy v1.13.1 and v1.13.3 has fixed the bug
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | numpy | < 1.13.3 | 1.13.3 | GHSA-frgw-fgh6-9g52 |
Advisories 6
- openSUSE-SU-2026:11371-1 python313-numpy-2.4.6-1.1 on GA media SUSE / openSUSE Security Updates · Jul 25, 2026
- SUSE-RU-2017:3010-1 Initial release of python-numpy for HPC (v1.13.3, gcc) SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13820-1 python310-numpy-1.26.2-5.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14311-1 python310-numpy1-1.26.4-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11243-1 python38-numpy-1.21.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:3954-1 Security update for python-numpy SUSE / openSUSE Security Updates · May 2, 2025