CVE-2021-33430
MEDIUM 5.3CVSS 3.1NumPy Buffer Overflow (Disputed)
A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service. NOTE: The vendor does not agree this is a vulneraility; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user
- Published
- 17 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120
- Also known as
- GHSA-6p56-wp2h-9hxrPYSEC-2021-854
- Sources
- NVDJSONOSV GHSA-6p56-wp2h-9hxrJSONOSV PYSEC-2021-854JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/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.9.0, <= 1.9.3 | |
| OSV | PyPI | numpy | >= 1.9.0, < 1.21 | 1.21 |
| OSV | PyPI | numpy | >= 1.9.0, < 1.10.0 | 1.10.0 |
References
- https://github.com/numpy/numpy/issues/18939 · Exploit, Third Party Advisory, WEB, REPORT
- https://nvd.nist.gov/vuln/detail/CVE-2021-33430 · ADVISORY
- https://github.com/numpy/numpy/commit/ae317fd9ff3e79c0eac357d723bfc29cbd625f2e · WEB
- https://github.com/numpy/numpy · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-854.yaml · WEB
- https://github.com/advisories/GHSA-6p56-wp2h-9hxr · 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 7 Jan 2022)