CVE-2021-34141
MEDIUM 5.3CVSS 3.1Incorrect Comparison in NumPy
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."
- Published
- 17 Dec 2021
- Last modified
- 8 Oct 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-697
- Also known as
- GHSA-fpfv-jqm9-f5jmPYSEC-2021-855
- Sources
- NVDJSONOSV GHSA-fpfv-jqm9-f5jmJSONOSV PYSEC-2021-855JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | numpy | numpycpe:2.3:a:numpy:numpy:*:*:*:*:*:*:*:* |
< 1.22.0 | 1.22.0 |
| NVD | oracle | communications_cloud_native_core_policycpe:2.3:a:oracle:communications_cloud_native_core_policy:22.1.3:*:*:*:*:*:*:* |
= 22.1.3 | |
| OSV | PyPI | numpy | < 1.22 | 1.22 |
| OSV | PyPI | numpy | >= 1.9.0, < 1.10.0 | 1.10.0 |
References
- https://github.com/numpy/numpy/issues/18993 · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, REPORT
- https://www.oracle.com/security-alerts/cpujul2022.html · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-34141 · ADVISORY
- https://github.com/numpy/numpy/issues/18993#issuecomment-1010735102 · WEB
- https://github.com/advisories/GHSA-fpfv-jqm9-f5jm · ADVISORY
- https://github.com/numpy/numpy · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2021-855.yaml · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 17 Dec 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 18 Dec 2021)