CVE-2021-34141
MEDIUM5.3EPSS 0.06%Incorrect Comparison in NumPy
Published: 12/18/2021Modified: 4/28/2026
Description
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."
Affected packages (3)
- Debian/numpyfrom 0
- PyPI/numpyfrom 0, < 1.22
- PyPI/numpy>= 1.9.0, < 1.10.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
References (8)
- ADVISORYhttps://github.com/advisories/GHSA-fpfv-jqm9-f5jm
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-34141
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-34141
- PATCHhttps://github.com/numpy/numpy
- WEBhttps://github.com/numpy/numpy/issues/18993
- WEBhttps://github.com/numpy/numpy/issues/18993#issuecomment-1010735102
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-855.yaml
- WEBhttps://www.oracle.com/security-alerts/cpujul2022.html