CVEfocus › CVE database › CVE-2021-41495

CVE-2021-41495

CVSS 5.3 MediumEPSS 1.2% (higher than 69% of CVEs)Published 2021-12-17Updated 2024-08-04Assigner: mitre

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

What to do

Fixed builds are available from PyPI, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
10Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04numpyFixed1:1.21.5-1ubuntu22.04.1UBUNTU-CVE-2021-41495
Ubuntu 20.04numpyFixed1:1.17.4-5ubuntu3.1UBUNTU-CVE-2021-41495
Debian 14numpyWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2021-41495
Debian 13numpyWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2021-41495
Debian 12numpyWill not fix
Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned.
DEBIAN-CVE-2021-41495
Red Hat Enterprise Linux 9python3-numpyNot affected
Red Hat Enterprise Linux 9python3-numpy-f2pyNot affected
Red Hat Enterprise Linux 8numpyWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-numpyWill not fix
Will not fix
Red Hat Enterprise Linux 8python3-numpy-f2pyWill not fix
Will not fix
Red Hat Enterprise Linux 7numpyWill not fix
Out of support scope
Red Hat Enterprise Linux 7numpy-f2pyWill not fix
Out of support scope
Red Hat Enterprise Linux 6numpyWill not fix
Out of support scope
Red Hat Enterprise Linux 6numpy-f2pyWill not fix
Out of support scope
PyPI librarynumpyFixed1.19PYSEC-2021-856

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.