Live threats

All CVEs / Numpy

CVE-2021-33430Numpy

Medium 5.3

Priority
32
CVSS 3.1
5.3
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
Yes
Published
Dec 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service. NOTE: The vendor does not agree this is a vulneraility; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user

Original NVD text.

What to do

  1. Apply the vendor's security update for Numpy.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI numpy ≥ 1.9.0 < 1.21 1.21 pip install "numpy>=1.21"
PyPI numpy ≥ 1.9.0 < 1.10.0 1.10.0 pip install "numpy>=1.10.0"

Per OSV / GitHub Advisories (GHSA-6p56-wp2h-9hxr, PYSEC-2021-854). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
numpynumpy≥ 1.9.0 ≤ 1.9.3

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.