5.5medium
Buffer Copy without Checking Size of Input in NumPy
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.40% (higher than 35% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-f7c7-j99h-c22fPYSEC-2021-857
Description
Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| numpy (PyPI) | before 1.19, before 1.19.0 | GitHub Advisory Database, PyPA Advisory Database |
| numpy numpy | before 1.19.0 | NVD |
All scores
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.1low CVSS:2.0 | AV:L/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values. NOTE: The vendor does not agree this is a vulnerability; the negative dimensions can only be created by an already privileged user (or internally)
GitHub Advisory Database
Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values.
NVD (es)
** EN DISPUTA ** Un desbordamiento de búfer en la función array_from_pyobj del archivo fortranobject.c en NumPy versiones anteriores a 1.19, que permite a atacantes realizar un ataque de denegación de servicio al construir cuidadosamente un array con valores negativos. NOTA: El proveedor no está de acuerdo en que esto sea una vulnerabilidad; las dimensiones negativas sólo pueden ser creadas por un usuario ya privilegiado (o internamente)
References
| https://github.com/numpy/numpy/issues/19000 | exploit, issue-tracking, patch, 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-41496 | advisory | |
| https://github.com/numpy/numpy | package | |
| https://github.com/advisories/GHSA-f7c7-j99h-c22f | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41496 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f7c7-j99h-c22f changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-41496 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-857 changed 2023-11-08 | CC-BY-4.0 |