Numpy Deserialization of Untrusted Data
Published 24 May 2022 · Updated 6 Jul 2026
Is your project on an affected numpy?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.16.3
- Fixed in
- 1.16.3
pip install 'numpy>=1.16.3'Details
DISPUTED An issue was discovered in NumPy 1.16.2 and earlier. It uses the pickle Python module unsafely, which allows remote attackers to execute arbitrary code via a crafted serialized object, as demonstrated by a numpy.load call. NOTE: third parties dispute this issue because it is a behavior that might have legitimate applications in (for example) loading serialized Python object arrays from trusted and authenticated sources.
Is GHSA-9fq2-x9r6-wfmf 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
- 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
- HighCVE-2021-41495NumPy NULL Pointer Dereference · 8 Feb 2022
- MediumCVE-2021-41496Buffer Copy without Checking Size of Input in NumPy · 8 Feb 2022
- MediumCVE-2021-33430NumPy Buffer Overflow (Disputed) · 7 Jan 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2019-6446
- Linkgithub.com/numpy/numpy/issues/12759
- Linkgithub.com/numpy/numpy/pull/12889
- Linkgithub.com/numpy/numpy/pull/13359
- Linkgithub.com/numpy/numpy/commit/89b688732b37616c9d26623f81aaee1703c30ffb
- Linkaccess.redhat.com/errata/RHSA-2019:3335
- Linkaccess.redhat.com/errata/RHSA-2019:3704
- Linkbugzilla.suse.com/show_bug.cgi?id=1122208
- Advisorygithub.com/advisories/GHSA-9fq2-x9r6-wfmf
- Packagegithub.com/numpy/numpy
- Linkgithub.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2019-108.yaml
- Linklists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7ZZAYIQNUUYXGMKHSPEEXS4TRYFOUYE4
- Linklists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7ZZAYIQNUUYXGMKHSPEEXS4TRYFOUYE4
- Linkweb.archive.org/web/20210124234613/https://www.securityfocus.com/bid/106670
- Linklists.opensuse.org/opensuse-security-announce/2019-09/msg00091.html
- Linklists.opensuse.org/opensuse-security-announce/2019-09/msg00092.html
- Linklists.opensuse.org/opensuse-security-announce/2019-10/msg00015.html
- Linkwww.securityfocus.com/bid/106670
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.