5.3medium
NumPy NULL Pointer Dereference
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.24% (higher than 69% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-5545-2q6w-2gh6PYSEC-2021-856
Description
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
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| numpy (PyPI) | before 1.19, before 1.19.1 | GitHub Advisory Database, PyPA Advisory Database |
| numpy numpy | up to 1.19.0 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
Classification
What each source says
CVE List
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
GitHub Advisory Database
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.
NVD (es)
** EN DISPUTA ** Se presenta una vulnerabilidad de Desreferencia de Puntero Null en el archivo numpy.sort en NumPy versión 1.19, en la función PyArray_DescrNew debido a una falta de comprobación del valor de retorno, lo que permite a atacantes llevar a cabo ataques de denegación de servicio mediante la creación y ordenación repetitiva de arrays. NOTA: Si bien es correcto que falta la validación, sólo puede producirse un error debido a un agotamiento de la memoria. Si el usuario puede agotar la memoria, ya es privilegiado. Además, debería ser prácticamente imposible construir un ataque que pueda dirigirse al agotamiento de la memoria para que ocurra exactamente en este lugar
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41495 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5545-2q6w-2gh6 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-41495 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-856 changed 2023-11-08 | CC-BY-4.0 |