Live threats

All CVEs / Numpy

CVE-2021-41495Numpy

Medium 5.3

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

What happens

Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays. NOTE: While correct that validation is missing, an error can only occur due to an exhaustion of memory. If the user can exhaust memory, they are already privileged. Further, it should be practically impossible to construct an attack which can target the memory exhaustion to occur at exactly this place

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.1 1.19.1 pip install "numpy>=1.19.1"

Per OSV / GitHub Advisories (GHSA-5545-2q6w-2gh6, PYSEC-2021-856). 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.