CVE-2021-41496: numpy Classic Buffer Overflow
Vulnerability summary
CVE-2021-41496 is a medium (CVSS 5.5) Classic Buffer Overflow vulnerability in numpy. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 32.5% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 17 · Related 14Timeline
- 17-12-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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)
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · PypiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.40%
Chance of exploitation in the next 30 days
Percentile
33%
Versus all other CVEs
30-day change
+0.03 pp
From 0.37% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundNumpy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- numpyAll versions (No fix recorded)
Numpy1 product
- numpy< 1.19.0
PyPI1 product
- numpy< 1.19 | < 1.19.0
Ubuntu1 product
- numpy< 1:1.17.4-5ubuntu3.1 | < 1:1.21.5-1ubuntu22.04.1
4 vendors · 4 products
References
11 links- github.com/numpy/numpy/issues/19000X Refsource MISCWEBREPORTExploitIssue TrackingPatchThird Party Advisory
- github.com/numpy/numpyPACKAGE