cve.bz

CVE-2021-41496 numpy numpy: Classic Buffer Overflow

5.5 mediumExploit referenceEPSS 0.4%Fix available

Medium (5.5) in numpy numpy. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in numpy 1.19, 1.19.0.

On this page
Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-41496 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41496?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41496?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-41496 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
numpy:numpybefore 1.19.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-f7c7-j99h-c22fPyPInumpy<1.191.19
PYSEC-2021-857PyPInumpy<1.19.01.19.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14numpyno fix listedDEBIAN-CVE-2021-41496
Ubuntu20.04:LTSnumpy1:1.17.4-5ubuntu3.1UBUNTU-CVE-2021-41496 USN-5763-1
Ubuntu22.04:LTSnumpy1:1.21.5-1ubuntu22.04.1UBUNTU-CVE-2021-41496 USN-5763-1
Red Hatopenstack:16.1::el8numpy, python3-numpy, numpy-debugsource and 2 more1:1.17.0-8.el8ostRHSA-2022:0987
Red Hatopenstack:16.2::el8numpy, python3-numpy, numpy-debugsource and 2 more1:1.17.0-8.el8ostRHSA-2022:1000
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise Server 15 SP1-BCL and 10 morepython-numpy1.17.3-10.1SUSE-SU-2022:0134-3
SUSEEnterprise Storage 6, Linux Enterprise Server 15 SP1-BCL, Linux Enterprise Server 15 SP1-LTSS and 3 morepython2-numpy1.16.5-150000.1.9.1SUSE-SU-2022:2441-1
SUSEEnterprise Storage 7, Linux Enterprise Server 15 SP2-LTSS, Linux Enterprise Server for SAP Applications 15 SP2 and 3 morepython2-numpy1.16.5-150200.3.5.1SUSE-SU-2022:1064-2
SUSELinux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15 SP2-ESPOS and 4 morepython-numpy, python-numpy_1_17_3-gnu-hpc1.17.3-10.1SUSE-SU-2022:0134-3
SUSELinux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise High Performance Computing 15-ESPOS and 1 morepython2-numpy, python-numpy_1_16_5-gnu-hpc1.16.5-150000.1.9.1SUSE-SU-2022:2441-1
SUSELinux Enterprise High Performance Computing 15 SP2-ESPOS, Linux Enterprise High Performance Computing 15 SP2-LTSSpython2-numpy, python-numpy_1_16_5-gnu-hpc1.16.5-150200.3.5.1SUSE-SU-2022:1064-2
SUSELinux Enterprise Module for Basesystem 15 SP3python-numpy1.17.3-10.1SUSE-SU-2022:0134-1
SUSELinux Enterprise Module for HPC 12python-numpy_1_13_3-gnu-hpc1.13.3-4.12.1SUSE-SU-2022:0206-1
SUSELinux Enterprise Module for HPC 15 SP3python-numpy_1_16_5-gnu-hpc1.16.5-150200.3.5.1SUSE-SU-2022:1064-1
SUSELinux Enterprise Module for HPC 15 SP3python-numpy_1_17_3-gnu-hpc1.17.3-10.1SUSE-SU-2022:0134-1
SUSELinux Enterprise Module for Python 2 15 SP3python2-numpy1.16.5-150200.3.5.1SUSE-SU-2022:1064-1
SUSELinux Enterprise Real Time 15 SP2python-numpy, python-numpy_1_17_3-gnu-hpc1.17.3-10.1SUSE-SU-2022:0134-1 SUSE-SU-2022:0134-2
2 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.3dxflib3.17.0-bp153.2.3.1openSUSE-SU-2022:0134-1
openSUSELeap 15.3python-numpy, python-numpy_1_17_3-gnu-hpc1.17.3-10.1openSUSE-SU-2022:0134-1
openSUSELeap 15.3python2-numpy, python-numpy_1_16_5-gnu-hpc1.16.5-150200.3.5.1openSUSE-SU-2022:1064-1
openSUSELeap 15.4python-numpy_1_16_5-gnu-hpc1.16.5-150200.3.5.1SUSE-SU-2022:1064-2
openSUSETumbleweedpython-numpy1.25.2-2.1openSUSE-SU-2024:13220-1
openSUSETumbleweedpython-numpy2.4.6-1.1openSUSE-SU-2026:11371-1
openSUSETumbleweedpython-numpy11.26.4-1.1openSUSE-SU-2024:14311-1
Azure Linux2numpy1.22.0-1AZL-7056

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.1numpy-1:1.17.0-8.el8ostFixed 2022-03-24RHSA-2022:0987
Red Hat OpenStack Platform 16.2numpy-1:1.17.0-8.el8ostFixed 2022-03-23RHSA-2022:1000
Red Hat Enterprise Linux 6numpyOut of support scope
Red Hat Enterprise Linux 7numpyOut of support scope
Red Hat Enterprise Linux 8inkscape:flatpak/numpyWill not fix
Red Hat Enterprise Linux 8numpyWill not fix
Red Hat Enterprise Linux 8python27:2.7/numpyWill not fix
Red Hat Enterprise Linux 8python38:3.8/numpyWill not fix
Red Hat Enterprise Linux 8python39:3.9/numpyWill not fix
Red Hat Enterprise Linux 9numpyNot affected
Red Hat OpenStack Platform 13 (Queens)numpyOut of support scope
Red Hat Software Collectionspython27-numpyWill not fix
Red Hat Software Collectionsrh-python38-numpyWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-41496.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON