CVE-2021-34141: numpy Incorrect Comparison
CVSS: 5.3v3.1MediumModified
AliasesGHSA-fpfv-jqm9-f5jmPYSEC-2021-855UBUNTU-CVE-2021-34141DEBIAN-CVE-2021-34141
Published 17-12-2021Last modified 08-10-2026
Vulnerability summary
CVE-2021-34141 is a medium (CVSS 5.3) Incorrect Comparison vulnerability in numpy. EPSS estimates a 1.68% chance of exploitation in the next 30 days, higher than 76.5% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
5.3/10
010
Medium · v3.1 (NVD)EPSS score
1.68%
0%100%
Low · +0.12 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 17-12-2021PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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."
CVSS metrics
5 scores · 4 sources · 2 versionsMedium 5.3Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LSourcesAll 4 agree
- OSV · PypiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Medium 5.0Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:N/I:N/A:PSourcesSingle source
EPSS trend
Probability
1.68%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
+0.12 pp
From 1.56% on 20-09-2026
20-09-202620-10-2026
EPSS score1.68%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundNumpy
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- numpyAll versions (No fix recorded)
Numpy1 product
- numpy< 1.22.0
Oracle1 product
PyPI1 product
- numpy< 1.22 | ≥ 1.9.0, < 1.10.0
Ubuntu1 product
- numpy< 1:1.17.4-5ubuntu3.1 | < 1:1.21.5-1ubuntu22.04.1
5 vendors · 5 products
References
12 links- github.com/numpy/numpy/issues/18993X Refsource MISCWEBREPORTExploitIssue TrackingPatchThird Party Advisory
- github.com/numpy/numpyPACKAGE