CVE-2021-41496
MEDIUM 5.5CVSS 3.1Buffer Copy without Checking Size of Input in NumPy
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)
- Published
- 17 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120
- Also known as
- GHSA-f7c7-j99h-c22fPYSEC-2021-857
- Sources
- NVDJSONOSV GHSA-f7c7-j99h-c22fJSONOSV PYSEC-2021-857JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 2.1 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | numpy | numpycpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:* |
< 1.19.0 | 1.19.0 |
| OSV | PyPI | numpy | < 1.19 | 1.19 |
| OSV | PyPI | numpy | < 1.19.0 | 1.19.0 |
References
- https://github.com/numpy/numpy/issues/19000 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- https://www.oracle.com/security-alerts/cpujul2022.html · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41496 · ADVISORY
- https://github.com/numpy/numpy · PACKAGE
- https://github.com/advisories/GHSA-f7c7-j99h-c22f · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Feb 2022)