Skip to content
NumPyGHSA-6p56-wp2h-9hxr

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
numpy
PyPI
>= 1.9.0, < 1.211.21
Details and references

More NumPy advisories

All NumPy
Advisory
Arbitrary file write in NumPy
High5.5May 14, 2022
Numpy arbitrary file write via symlink attack
High5.5May 14, 2022
Numpy missing input validation
High7.5May 13, 2022
Buffer Copy without Checking Size of Input in NumPy
Medium5.5Feb 8, 2022
NumPy NULL Pointer Dereference
High7.5Feb 8, 2022
Incorrect Comparison in NumPy
Medium5.3Dec 18, 2021

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.