Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2017-12852 EUVD-2017-0080GHSA-frgw-fgh6-9g52PYSEC-2017-1

Numpy missing input validation

Published Aug 15, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS python-numpy No fix yet —
Ubuntu 16.04 LTS python-numpy No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 python-numpy 1.8.0-5.19.1 SUSE-SU-2022:3954-1
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

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

EcosystemPackageAffectedFixedRecord
PyPI numpy < 1.13.3 1.13.3 GHSA-frgw-fgh6-9g52

Advisories 6

References