MediumGHSA-f7c7-j99h-c22fCVE-2021-41496PYSEC-2021-857

Buffer Copy without Checking Size of Input in NumPy

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

Buffer overflow in the array_from_pyobj function of fortranobject.c in NumPy < 1.19, which allows attackers to conduct a Denial of Service attacks by carefully constructing an array with negative values.

Is GHSA-f7c7-j99h-c22f 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

All 8 advisories for numpy

References

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