Live threats

All CVEs / Numpy

CVE-2017-12852Numpy

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Aug 15, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-835
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Numpy.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI numpy < 1.13.3 1.13.3 pip install "numpy>=1.13.3"
PyPI numpy < 1.13.3 1.13.3 pip install "numpy>=1.13.3"

Per OSV / GitHub Advisories (GHSA-frgw-fgh6-9g52, PYSEC-2017-1). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
numpynumpy≤ 1.13.1

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.