# CVE-2021-34141: Incorrect Comparison in NumPy

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.68%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-12-17T18:43:17.000Z
- Modified: 2026-10-08T21:17:35.733Z
- Also known as: GHSA-fpfv-jqm9-f5jm, PYSEC-2021-855
- Weaknesses: CWE-697
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: mitre

## 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."

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- numpy (PyPI): before 1.22; from 1.9.0 before 1.10.0
- numpy numpy: before 1.22.0
- oracle communications_cloud_native_core_policy: 22.1.3

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/numpy/numpy/issues/18993> (exploit, issue-tracking, patch, report, third-party-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2021-34141](https://www.cve.org/CVERecord?id=CVE-2021-34141), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-fpfv-jqm9-f5jm](https://github.com/advisories/GHSA-fpfv-jqm9-f5jm), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-34141](https://nvd.nist.gov/vuln/detail/CVE-2021-34141), Public domain, modified 2026-10-08
- PyPA Advisory Database: [PYSEC-2021-855](https://osv.dev/vulnerability/PYSEC-2021-855), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-34141 · Whole record: https://cve.day/CVE-2021-34141.json · Rebuilt by cve.day 2026-11-25T22:58:06.071Z
