CVE-2021-34141: An incomplete string comparison in the numpy.core component in NumPy before 1.22.0 allows attackers to trigger
CVE-2021-34141 is a medium-severity flaw (CVSS 5.3) affecting numpy, communications cloud native core policy. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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."
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 1.7% (top 23%) |
| CISA exploited list | No |
| Weakness | CWE-697 |
| Published | 2021-12-17 |
| Last modified | 2026-10-08 |
Last updated 2026-10-08 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-34141?
numpy: upgrade to 1.22.0; communications cloud native core policy: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-34141 being exploited?
CVE-2021-34141 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-34141 affect?
CVE-2021-34141 affects numpy, communications cloud native core policy. Severity is medium (CVSS 5.3). 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 "
How urgent is CVE-2021-34141?
Priority 48/100. Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Pandas and NumPy vulnerabilities
Related CVEs
- CVE-2021-41496 MEDIUM 5.5 UPGRADE Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to
- CVE-2021-41495 MEDIUM 5.3 UPGRADE Null Pointer Dereference vulnerability exists in numpy.sort in NumPy < and 1.19 in the PyArray_DescrNew func
- CVE-2021-33430 MEDIUM 5.3 UPGRADE A Buffer Overflow vulnerability exists in NumPy 1.9.x in the PyArray_NewFromDescr_int function of ctors.c when
- CVE-2019-6446 CRITICAL 9.8 UPGRADE MITIGATE An issue was discovered in NumPy before 1.16.3
- CVE-2017-12852 HIGH 7.5 UPGRADE The numpy.pad function in Numpy 1.13.1 and older versions is missing input validation