NumPy Buffer Overflow (Disputed)
Medium5.3CVE-2021-33430 · Published Jan 7, 2022 · updated Sep 26, 2024
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 vulnerability; 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.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| numpy PyPI | >= 1.9.0, < 1.21 | 1.21 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-120
- Also known as
- CVE-2021-33430, PYSEC-2021-854
More NumPy advisories
All NumPy| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| May 142022 | Arbitrary file write in NumPy | High5.5 | 1.8.1 |
| May 142022 | Numpy arbitrary file write via symlink attack | High5.5 | 1.8.1 |
| May 132022 | Numpy missing input validation | High7.5 | 1.13.3 |
| Feb 82022 | Buffer Copy without Checking Size of Input in NumPy | Medium5.5 | 1.19 |
| Feb 82022 | NumPy NULL Pointer Dereference | High7.5 | 1.19 |
| Dec 182021 | Incorrect Comparison in NumPy | Medium5.3 | 1.22 |