# CVE-2021-41495: NumPy NULL Pointer Dereference

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T19:25:19.000Z
- Modified: 2026-06-17T04:08:33.897Z
- Also known as: GHSA-5545-2q6w-2gh6, PYSEC-2021-856
- Weaknesses: CWE-476
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- numpy (PyPI): before 1.19; before 1.19.1
- numpy numpy: up to 1.19.0

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: 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`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/numpy/numpy/issues/19038> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://www.oracle.com/security-alerts/cpujul2022.html> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41495> (advisory)
- <https://github.com/advisories/GHSA-5545-2q6w-2gh6> (advisory)
- <https://github.com/numpy/numpy> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-856.yaml> (web)

## Sources

- CVE List: [CVE-2021-41495](https://www.cve.org/CVERecord?id=CVE-2021-41495), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-5545-2q6w-2gh6](https://github.com/advisories/GHSA-5545-2q6w-2gh6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-41495](https://nvd.nist.gov/vuln/detail/CVE-2021-41495), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-856](https://osv.dev/vulnerability/PYSEC-2021-856), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-41495 · Whole record: https://cve.day/CVE-2021-41495.json · Rebuilt by cve.day 2026-11-25T22:58:06.073Z
