CVE-2021-41495Numpy
Medium 5.3
Follow: this CVE · Numpy · Numpy We alert you by email or Slack (account required).
- 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 < 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
What to do
- Apply the vendor's security update for Numpy.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| numpy | numpy | ≤ 1.19.0 |
Official advisories
- python313-numpy-2.4.6-1.1 on GA media · SUSE · openSUSE-SU-2026:11371-1 · Jul 24, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Third Party Advisory
- www.oracle.com Third Party Advisory