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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| numpy (PyPI) | from 1.9.0 before 1.21, from 1.9.0 before 1.10.0 | GitHub Advisory Database, PyPA Advisory Database |
| numpy numpy | from 1.9.0 up to 1.9.3 | NVD |
All scores
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| 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
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33430 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6p56-wp2h-9hxr changed 2024-09-26 | CC-BY-4.0 |
| NVD | CVE-2021-33430 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-854 changed 2023-11-08 | CC-BY-4.0 |