CVE-2021-41495
JSON

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 &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

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
numpy (PyPI)before 1.19, before 1.19.1GitHub Advisory Database, PyPA Advisory Database
numpy numpyup to 1.19.0NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD3.5low CVSS:2.0AV: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 &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

GitHub Advisory Database

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.

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

Sources

SourceRecordLicence
CVE ListCVE-2021-41495 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-5545-2q6w-2gh6 changed 2023-11-08CC-BY-4.0
NVDCVE-2021-41495 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-856 changed 2023-11-08CC-BY-4.0