Vulnerability · Published Dec 17, 2021 · Assigned by mitre
CVE-2021-41495
Medium 5.3
In plain English
A medium-severity security flaw in the numpy package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | numpy | no fix listed | DEBIAN-CVE-2021-41495 |
| Debian:13 | numpy | no fix listed | DEBIAN-CVE-2021-41495 |
| Debian:14 | numpy | no fix listed | DEBIAN-CVE-2021-41495 |
| PyPI | numpy | 1.19 | GHSA-5545-2q6w-2gh6 |
| PyPI | numpy | 1.19.1 | PYSEC-2021-856 |
| Ubuntu:22.04:LTS | numpy | 1:1.21.5-1ubuntu22.04.1 | USN-5763-1 |
| Ubuntu:22.04:LTS | numpy | 1:1.21.5-1ubuntu22.04.1 | UBUNTU-CVE-2021-41495 |