# CVE-2021-33430: NumPy Buffer Overflow (Disputed)

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T18:36:51.000Z
- Modified: 2026-06-17T03:54:32.750Z
- Also known as: GHSA-6p56-wp2h-9hxr, PYSEC-2021-854
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- numpy (PyPI): from 1.9.0 before 1.21; from 1.9.0 before 1.10.0
- numpy numpy: from 1.9.0 up to 1.9.3

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/numpy/numpy/issues/18939> (exploit, report, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-33430](https://www.cve.org/CVERecord?id=CVE-2021-33430), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-6p56-wp2h-9hxr](https://github.com/advisories/GHSA-6p56-wp2h-9hxr), CC-BY-4.0, modified 2024-09-26
- NVD: [CVE-2021-33430](https://nvd.nist.gov/vuln/detail/CVE-2021-33430), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-854](https://osv.dev/vulnerability/PYSEC-2021-854), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-33430 · Whole record: https://cve.day/CVE-2021-33430.json · Rebuilt by cve.day 2026-11-25T22:58:06.070Z
