VYPR
Moderate severityNVD Advisory· Published Dec 17, 2021· Updated Aug 4, 2024

CVE-2021-34141

CVE-2021-34141

Description

An incomplete string comparison in NumPy before 1.22.0 allows attackers to trigger slightly incorrect copying via crafted string objects, though the vendor considers it harmless.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

An incomplete string comparison in NumPy before 1.22.0 allows attackers to trigger slightly incorrect copying via crafted string objects, though the vendor considers it harmless.

Vulnerability

An incomplete string comparison in the numpy.core component of NumPy before version 1.22.0 allows attackers to trigger slightly incorrect copying by constructing specific string objects [1][4]. The issue resides in the string comparison logic, which may produce incorrect results when comparing specially crafted strings.

Exploitation

An attacker can exploit this vulnerability by providing specially constructed string objects to NumPy functions that rely on string comparison. No special privileges or network access are required if the attacker can supply input to a NumPy operation, such as through a script or application that processes untrusted data [1].

Impact

Successful exploitation results in "slightly incorrect copying" of data, which the vendor states is "completely harmless" [1][4]. The impact is limited to potential data corruption in edge cases, with no privilege escalation or remote code execution.

Mitigation

The issue is fixed in NumPy version 1.22.0 [1][4]. Users should upgrade to this version or later. No workarounds are documented, and the vulnerability is not listed in the Known Exploited Vulnerabilities (KEV) catalog.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
numpyPyPI
< 1.221.22

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

6

News mentions

0

No linked articles in our index yet.