CVE-2021-41495
MEDIUM 5.3CVSS 3.1NumPy NULL Pointer Dereference
Null Pointer Dereference vulnerability exists in numpy.sort in NumPy < 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
- Published
- 17 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-476
- Also known as
- GHSA-5545-2q6w-2gh6PYSEC-2021-856
- Sources
- NVDJSONOSV GHSA-5545-2q6w-2gh6JSONOSV PYSEC-2021-856JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | numpy | numpycpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:* |
<= 1.19.0 | |
| OSV | PyPI | numpy | < 1.19 | 1.19 |
| OSV | PyPI | numpy | < 1.19.1 | 1.19.1 |
References
- https://github.com/numpy/numpy/issues/19038 · Exploit, Issue Tracking, Third Party Advisory, WEB, REPORT
- 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Feb 2022)