HighGHSA-5545-2q6w-2gh6CVE-2021-41495PYSEC-2021-856

NumPy NULL Pointer Dereference

Published 8 Feb 2022 · Updated 8 Nov 2023

Is your project on an affected numpy?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

numpyPyPI
Affected
<1.19
Fixed in
1.19
Update to the fixed version for your release line, for example:pip install 'numpy>=1.19'

Details

Null Pointer Dereference vulnerability exists in numpy.sort in NumPy &lt and 1.19 in the PyArray_DescrNew function due to missing return-value validation, which allows attackers to conduct DoS attacks by repetitively creating sort arrays.

Is GHSA-5545-2q6w-2gh6 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected numpy, and gives you the command that fixes it.

More advisories for numpy

  • CriticalCVE-2019-6446Numpy Deserialization of Untrusted Data · 24 May 2022
  • HighCVE-2014-1858Arbitrary file write in NumPy · 14 May 2022
  • HighCVE-2014-1859Numpy arbitrary file write via symlink attack · 14 May 2022
  • HighCVE-2017-12852Numpy missing input validation · 13 May 2022
  • MediumCVE-2021-41496Buffer Copy without Checking Size of Input in NumPy · 8 Feb 2022
  • MediumCVE-2021-33430NumPy Buffer Overflow (Disputed) · 7 Jan 2022
All 8 advisories for numpy

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.