CVE-2021-33430

NameCVE-2021-33430
DescriptionA 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
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
numpy (PTS)bullseye1:1.19.5-1vulnerable
bookworm1:1.24.2-1fixed
trixie1:1.24.2-2fixed
sid1:1.26.4+ds-8fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
numpysource(unstable)1:1.21.4-2

Notes

[bullseye] - numpy <no-dsa> (Minor issue)
https://github.com/numpy/numpy/issues/18939
https://github.com/numpy/numpy/pull/18989
https://github.com/numpy/numpy/commit/16f7824b4d935b6aee98298ca4123d57174a6f2e (v1.22.0.dev0)

Search for package or bug name: Reporting problems