Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-33430 EUVD-2021-0150GHSA-6p56-wp2h-9hxrPYSEC-2021-854

NumPy Buffer Overflow (Disputed)

Published Dec 17, 2021 · Updated Aug 3, 2024 · 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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 numpy 1:1.21.4-2 —
Debian 13 numpy 1:1.21.4-2 —
Debian 12 numpy 1:1.21.4-2 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS numpy 1:1.21.5-1ubuntu22.04.1 USN-5763-1
Ubuntu 20.04 LTS numpy 1:1.17.4-5ubuntu3.1 USN-5763-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 16 numpy +2 1:1.17.0-8.el8ost RHSA-2022:1000, RHSA-2022:0987
ReleasePackageFixed inAdvisory
SLES 15 SP3 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-1
SLES 15 SP3 python-numpy_1_16_5-gnu-hpc 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-1
SLES 15 SP2 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES 15 SP1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES 15 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES 15 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES 12 SP5 python-numpy 1.8.0-5.11.1 SUSE-SU-2022:0118-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 python-numpy_1_13_3-gnu-hpc 1.13.3-4.12.1 SUSE-SU-2022:0206-1
SLES 2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-1
SLES for SAP 15 SP2 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES for SAP 15 SP2 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLES for SAP 15 SP1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES for SAP 15 SP1 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES for SAP 15 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SLES for SAP 15 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLES for SAP 12 SP5 python-numpy 1.8.0-5.11.1 SUSE-SU-2022:0118-1
SLE Real Time 15 SP2 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3, SUSE-SU-2022:0134-2, SUSE-SU-2022:0134-1
SLE HPC 15 SP2 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 SP2 python2-numpy +1 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SLE HPC 15 SP1 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 SP1 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SLE HPC 15 python-numpy +1 1.17.3-10.1 SUSE-SU-2022:0134-3
SLE HPC 15 python2-numpy +1 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
SUSE Package Hub 15 SP3 dxflib 3.17.0-bp153.2.3.1 openSUSE-SU-2022:0134-1
SUSE Manager Server 4.1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Manager Server 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Manager Retail Branch Server 4.1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Manager Retail Branch Server 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Manager Proxy 4.1 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Manager Proxy 4.1 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 7 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Enterprise Storage 7 python2-numpy 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
SUSE Enterprise Storage 6 python-numpy 1.17.3-10.1 SUSE-SU-2022:0134-3
SUSE Enterprise Storage 6 python2-numpy 1.16.5-150000.1.9.1 SUSE-SU-2022:2441-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-numba 0.61.0-1.1 openSUSE-SU-2025:14743-1
openSUSE Tumbleweed python-numpy 1.25.2-2.1 openSUSE-SU-2026:11371-1, openSUSE-SU-2024:13220-1
openSUSE Tumbleweed python-numpy1 1.26.4-1.1 openSUSE-SU-2024:14311-1
openSUSE Leap 15.4 python-numpy_1_16_5-gnu-hpc 1.16.5-150200.3.5.1 SUSE-SU-2022:1064-2
openSUSE Leap 15.3 dxflib 3.17.0-bp153.2.3.1 openSUSE-SU-2022:0134-1
openSUSE Leap 15.3 python-numpy +1 1.17.3-10.1 openSUSE-SU-2022:0134-1
openSUSE Leap 15.3 python2-numpy +1 1.16.5-150200.3.5.1 openSUSE-SU-2022:1064-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI numpy >= 1.9.0, < 1.21 1.21 GHSA-6p56-wp2h-9hxr
PyPI numpy >= 1.9.0, < 1.10.0 1.10.0 PYSEC-2021-854

Advisories 20

References