Skip to content
Fencer Vulns
medium 5.3

CVE-2021-34141 json

Incorrect Comparison in NumPy

published 2021-12-17 4 y ago modified 2026-10-08 31 d ago also GHSA-fpfv-jqm9-f5jm , PYSEC-2021-855 , EUVD-2021-0151

cvss
5.3
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.7%
EPSS 1.7% chance of exploitation in 30 days, percentile 77%
public exploits
0
none known

Summary

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

Patch / fix

  • pypi numpy 1.10.0, 1.22
  • numpy numpy 1.22.0
  • numpy Ubuntu 20.04 LTS 1:1.17.4-5ubuntu3.1
  • numpy Ubuntu 22.04 LTS 1:1.21.5-1ubuntu22.04.1

ubuntu advisories UBUNTU-CVE-2021-34141

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-34141 updated cvss 2.2

numpy: incomplete string comparison in the numpy.core component

  • Red Hat Enterprise Linux 8 numpy, python3-numpy, python3-numpy-f2py
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux 9 python3-numpy, python3-numpy-f2py
    affected: no fix planned “Will not fix”
  • Red Hat Software Collections rh-python38-python-numpy, rh-python38-python-numpy-f2py
    affected: no fix available “Fix deferred”
  • Red Hat Enterprise Linux 6 numpy, numpy-f2py Red Hat Enterprise Linux 7 numpy, numpy-f2py Red Hat OpenStack Platform 13 (Queens) python2-numpy, python2-numpy-f2py Red Hat OpenStack Platform 16.1 numpy, python3-numpy, python3-numpy-f2py Red Hat OpenStack Platform 16.2 numpy, python3-numpy, python3-numpy-f2py Red Hat Software Collections python27-numpy, python27-numpy-f2py
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
31 d ago

Exploit prediction

1.68% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/numpy/numpy/issues/18993 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
pypi numpy
<1.22
>=1.9.0, <1.10.0
1.22
1.10.0

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.