
CVE catalog
CVE-2021-34141
numpy: CVE-2021-34141
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.68% · Oct 25, 2026
An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows attackers to trigger slightly incorrect copying by constructing specific string objects. NOTE: the vendor states that this reported code behavior is "completely harmless."
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | numpy | sid | 1:2.4.6+ds-5 | vulnerable |
| Debian | numpy | forky | 1:2.4.6+ds-5 | vulnerable |
| Debian | numpy | trixie | 1:2.2.4+ds-1 | vulnerable |
| Debian | numpy | bookworm | 1:1.24.2-1+deb12u1 | vulnerable |
| Cpe | numpy | Not reported | 1.22.0 | fixed |
| Cpe | communications_cloud_native_core_policy | Not reported | Not reported | unknown |
| Ubuntu | numpy | 20.04 | 1:1.17.3-0ubuntu2 | vulnerable |
| Ubuntu | numpy | 20.04 | 1:1.17.4-3ubuntu1 | vulnerable |
| Ubuntu | numpy | 20.04 | 1:1.17.4-3ubuntu2 | vulnerable |
| Ubuntu | numpy | 20.04 | 1:1.17.4-5ubuntu2 | vulnerable |
| Ubuntu | numpy | 20.04 | 1:1.17.4-5ubuntu3 | vulnerable |
| Ubuntu | numpy | 20.04 | 1:1.17.4-5ubuntu3.1 | fixed |
| Ubuntu | numpy | 22.04 | 1:1.19.5-1ubuntu2 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.19.5-1ubuntu3 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.20.2-1ubuntu1 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.21.4-2 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.21.5-1 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.21.5-1build2 | vulnerable |
| Ubuntu | numpy | 22.04 | 1:1.21.5-1ubuntu22.04.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | numpy | source | sid | (unfixed) | unimportant | Not reported | Not reported |
| Debian | numpy | source | forky | (unfixed) | unimportant | Not reported | Not reported |
| Debian | numpy | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | numpy | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Cpe | numpy | cpe | Not reported | 1.22.0 | Not reported | NVD-CVE-2021-34141 | Not reported |
| Ubuntu | numpy | deb | 20.04 | 1:1.17.4-5ubuntu3.1 | Not reported | UBUNTU-CVE-2021-34141 | Not reported |
| Ubuntu | numpy | deb | 22.04 | 1:1.21.5-1ubuntu22.04.1 | Not reported | UBUNTU-CVE-2021-34141 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-numpy]Affected
Source package: [numpy]
Details (2)
1:1.24.2-1+deb12u1· amd64 · bookwormAffected
dsa · numpy · debian · bookworm; dsa · numpy · debian · 12
1:1.24.2-1+deb12u1· arm64 · bookwormAffected
dsa · numpy · debian · bookworm; dsa · numpy · debian · 12
[Debian 13 (Trixie)]
- [python3-numpy]Affected
Source package: [numpy]
Details (2)
1:2.2.4+ds-1· amd64 · trixieAffected
dsa · numpy · debian · 13
1:2.2.4+ds-1· arm64 · trixieAffected
dsa · numpy · debian · 13
- [python3-numpy-dev]Affected
Source package: [numpy]
Details (2)
1:2.2.4+ds-1· amd64 · trixieAffected
dsa · numpy · debian · 13
1:2.2.4+ds-1· arm64 · trixieAffected
dsa · numpy · debian · 13
- [python-numpy-doc]Affected
Source package: [numpy]
Details (2)
1:2.2.4+ds-1· all · trixieAffected
dsa · numpy · debian · 13
1:2.2.4+ds-1· all · trixieAffected
dsa · numpy · debian · 13
Observed:
References
- [https://nvd.nist.gov/vuln/detail/CVE-2021-34141]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-34141]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-34141]
- [https://security-tracker.debian.org/tracker/CVE-2021-34141]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0302.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]