Live threats

All CVEs / Numpy

CVE-2021-41496Numpy

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.4%
probability of exploitation in 30 days · percentile 25
Auth required
Yes
Published
Dec 17, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)

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.19 1.19 pip install "numpy>=1.19"
PyPI numpy < 1.19.0 1.19.0 pip install "numpy>=1.19.0"

Per OSV / GitHub Advisories (GHSA-f7c7-j99h-c22f, PYSEC-2021-857). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
numpynumpy< 1.19.0

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.