cve.bz

CVE-2021-41495 numpy numpy: NULL Pointer Dereference

5.3 mediumExploit referenceEPSS 1.2%Fix available

Medium (5.3) in numpy numpy. EPSS 1.2% estimated probability of exploitation activity in the next 30 days. Fixed in numpy 1.19, 1.19.1.

On this page
Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays. NOTE: While correct that validation is missing, an error can only occur due to an exhaustion of memory. If the user can exhaust memory, they are already privileged. Further, it should be practically impossible to construct an attack which can target the memory exhaustion to occur at exactly this place

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
1.2% (unchanged from 1.2% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-23. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
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-41495 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-41495?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-41495?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-41495 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:numpythrough 1.19.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5545-2q6w-2gh6PyPInumpy<1.191.19
PYSEC-2021-856PyPInumpy<1.19.11.19.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14numpyno fix listedDEBIAN-CVE-2021-41495
Ubuntu20.04:LTSnumpy1:1.17.4-5ubuntu3.1UBUNTU-CVE-2021-41495 USN-5763-1
Ubuntu22.04:LTSnumpy1:1.21.5-1ubuntu22.04.1UBUNTU-CVE-2021-41495 USN-5763-1
Red Hatopenstack:16.1::el8numpy, python3-numpy, numpy-debugsource and 2 more1:1.17.0-11.el8ostRHSA-2022:8861
Red Hatopenstack:16.2::el8numpy, python3-numpy, numpy-debugsource and 2 more1:1.17.0-11.el8ostRHSA-2022:8852
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-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 SP4python-numpy1.17.3-150400.23.3.1SUSE-SU-2022:2646-1
SUSELinux Enterprise Module for Basesystem 15 SP6python3-numpy1.17.3-150400.31.1SUSE-SU-2025:0424-1
SUSELinux Enterprise Module for HPC 12python-numpy_1_13_3-gnu-hpc1.13.3-4.15.1SUSE-SU-2022:2793-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 SP4python-numpy_1_17_3-gnu-hpc1.17.3-150400.23.3.1SUSE-SU-2022:2646-1
SUSELinux Enterprise Module for HPC 15 SP6, Linux Enterprise Module for Package Hub 15 SP6python-numpy_1_17_3-gnu-hpc1.17.3-150400.31.1SUSE-SU-2025:0424-1
SUSELinux Enterprise Module for Python 2 15 SP3python2-numpy1.16.5-150200.3.5.1SUSE-SU-2022:1064-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5python-numpy1.8.0-5.14.1SUSE-SU-2022:2645-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, python-numpy_1_17_3-gnu-hpc1.17.3-150400.23.3.1SUSE-SU-2022:2646-1
openSUSELeap 15.4python-numpy_1_16_5-gnu-hpc1.16.5-150200.3.5.1SUSE-SU-2022:1064-2
openSUSELeap 15.6python3-numpy, python-numpy_1_17_3-gnu-hpc1.17.3-150400.31.1SUSE-SU-2025:0424-1
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-7045

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-11.el8ostFixed 2022-12-07RHSA-2022:8861
Red Hat OpenStack Platform 16.2numpy-1:1.17.0-11.el8ostFixed 2022-12-07RHSA-2022:8852
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-41495.

References

Check your stackJSON