Vulnerabilities in pkg:pypi/numpy
PACKAGECVE-2019-6446 is a CRITICAL (CVSS 9.8) numpy deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Numpy libraries in the PyPI ecosystem. The issue involves numpy deserialization of untrusted data. Remediation is available by upgrading affected packages to version 1.16.3.
pkg:pypi/numpy
Vulnerability advisories affecting package pkg:pypi/numpy. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9fq2-x9r6-wfmf | CVE-2019-6446 | CRITICAL | Numpy Deserialization of Untrusted Data |
| GHSA-cw6w-4rcx-xphc | CVE-2014-1858 | HIGH | Arbitrary file write in NumPy |
| GHSA-2fc2-6r4j-p65h | CVE-2014-1859 | HIGH | Numpy arbitrary file write via symlink attack |
| GHSA-6p56-wp2h-9hxr | CVE-2021-33430 | MODERATE | NumPy Buffer Overflow (Disputed) |
| GHSA-5545-2q6w-2gh6 | CVE-2021-41495 | HIGH | NumPy NULL Pointer Dereference |
| GHSA-fpfv-jqm9-f5jm | CVE-2021-34141 | MODERATE | Incorrect Comparison in NumPy |
| GHSA-f7c7-j99h-c22f | CVE-2021-41496 | MODERATE | Buffer Copy without Checking Size of Input in NumPy |
| GHSA-frgw-fgh6-9g52 | CVE-2017-12852 | HIGH | Numpy missing input validation |
CVE-2019-6446 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-6446
To remediate this vulnerability, upgrade all affected Numpy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install numpy>=1.16.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show numpy
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2019-6446, inspect your installed packages using pip:
pip show numpy
Analyze the terminal output to locate any version of Numpy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.16.3), your application is affected.
Note: The pip show numpy command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Numpy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-6446 Affected Numpy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
numpy
|
PyPI |
< 1.16.3
|
1.16.3
|
References
Frequently Asked Questions
What is CVE-2019-6446?
Which Numpy versions are affected?
What version fixes CVE-2019-6446?
Is numpy affected?
What is the CVSS score of CVE-2019-6446?
What CWE is associated with CVE-2019-6446?
How can I check PyPI dependencies for CVE-2019-6446?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9fq2-x9r6-wfmf",
"modified" : "2026-07-06T15:24:13Z",
"published" : "2022-05-24T22:00:57Z",
"aliases" : [ "CVE-2019-6446" ],
"summary" : "Numpy Deserialization of Untrusted Data",
"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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "numpy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.16.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-6446"
}, {
"type" : "WEB",
"url" : "https://github.com/numpy/numpy/issues/12759"
}, {
"type" : "WEB",
"url" : "https://github.com/numpy/numpy/pull/12889"
}, {
"type" : "WEB",
"url" : "https://github.com/numpy/numpy/pull/13359"
}, {
"type" : "WEB",
"url" : "https://github.com/numpy/numpy/commit/89b688732b37616c9d26623f81aaee1703c30ffb"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:3335"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:3704"
}, {
"type" : "WEB",
"url" : "https://bugzilla.suse.com/show_bug.cgi?id=1122208"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-9fq2-x9r6-wfmf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/numpy/numpy"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/numpy/PYSEC-2019-108.yaml"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7ZZAYIQNUUYXGMKHSPEEXS4TRYFOUYE4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7ZZAYIQNUUYXGMKHSPEEXS4TRYFOUYE4"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20210124234613/https://www.securityfocus.com/bid/106670"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00091.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00092.html"
}, {
"type" : "WEB",
"url" : "http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00015.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/106670"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-18T20:19:35Z",
"nvd_published_at" : "2019-01-16T05:29:01Z"
}
}