CVE-2021-33430
JSON

5.3medium

NumPy Buffer Overflow (Disputed)

Severity
5.3medium CVSS:3.1 by NVD
Exploit likelihood
1.50% (higher than 75% of CVEs)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-6p56-wp2h-9hxrPYSEC-2021-854

Description

A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service. NOTE: The vendor does not agree this is a vulneraility; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
numpy (PyPI)from 1.9.0 before 1.21, from 1.9.0 before 1.10.0GitHub Advisory Database, PyPA Advisory Database
numpy numpyfrom 1.9.0 up to 1.9.3NVD

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
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

CWE-120

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service. NOTE: The vendor does not agree this is a vulneraility; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user

GitHub Advisory Database

A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service.

NOTE: The vendor does not agree this is a vulnerability; In (very limited) circumstances a user may be able provoke the buffer overflow, the user is most likely already privileged to at least provoke denial of service by exhausting memory. Triggering this further requires the use of uncommon API (complicated structured dtypes), which is very unlikely to be available to an unprivileged user.

NVD (es)

** EN DISPUTA ** Se presenta una vulnerabilidad de desbordamiento del búfer en NumPy versión 1.9.x en la función PyArray_NewFromDescr_int del archivo ctors.c cuando son especificados arrays de grandes dimensiones (más de 32) desde el código de Python, lo que podría permitir a un usuario malicioso causar una Denegación de Servicio. NOTA: El proveedor no está de acuerdo en que esto sea una vulnerabilidad; en circunstancias (muy limitadas) un usuario puede ser capaz de provocar el desbordamiento del búfer, lo más probable es que el usuario ya tenga privilegios para al menos provocar la denegación de servicio agotando la memoria. Desencadenar esto requiere además el uso de una API poco común (dtypes estructurados complicados), que es muy poco probable que esté disponible para un usuario sin privilegios

PyPA Advisory Database

A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when specifying arrays of large dimensions (over 32) from Python code, which could let a malicious user cause a Denial of Service.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-33430 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-6p56-wp2h-9hxr changed 2024-09-26CC-BY-4.0
NVDCVE-2021-33430 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-854 changed 2023-11-08CC-BY-4.0