Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-34141 EUVD-2021-0151GHSA-fpfv-jqm9-f5jmPYSEC-2021-855

Incorrect Comparison in NumPy

Published Dec 17, 2021 · Updated Oct 8, 2026 · 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."

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 numpy No fix yet —
Debian 13 numpy No fix yet —
Debian 12 numpy No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS numpy 1:1.21.5-1ubuntu22.04.1 USN-5763-1
Ubuntu 20.04 LTS numpy 1:1.17.4-5ubuntu3.1 USN-5763-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI numpy < 1.22 1.22 GHSA-fpfv-jqm9-f5jm
PyPI numpy >= 1.9.0, < 1.10.0 1.10.0 PYSEC-2021-855

Advisories 4

References