# CVE-2019-6446: Numpy Deserialization of Untrusted Data

> Remote attackers can execute arbitrary code via crafted serialized objects in NumPy, requiring users to upgrade to a patched version.

- **Severity:** Critical 9.8 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Jan 2019
- **Updated:** 21 Jul 2025
- **Also known as:** CLSA-2025-1754266434, CLSA-2025-1755216832, GHSA-9fq2-x9r6-wfmf, MGASA-2019-0322, PYSEC-2019-108, RHSA-2019:3704, RLSA-2019:3704, SUSE-SU-2019:0418-1, SUSE-SU-2019:0419-1, SUSE-SU-2019:0448-1, SUSE-SU-2019:13951-1, SUSE-SU-2019:13977-1, SUSE-SU-2019:2462-1, SUSE-SU-2019:2462-2, openSUSE-SU-2019:0245-1, openSUSE-SU-2019:2225-1, openSUSE-SU-2019:2227-1, openSUSE-SU-2019:2259-1

## What is CVE-2019-6446?

CVE-2019-6446 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 16 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An issue was discovered in NumPy before 1.16.3. 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.

Weakness: CWE-502 (Deserialization of Untrusted Data)

## Which versions are affected by CVE-2019-6446?

3 open source packages ship an affected version, including numpy. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `numpy` | PyPI | All versions | 1.16.1 |
| `numpy` | PyPI | All versions | 1.16.3 |
| `numpy` | PyPI | All versions | 1.16.3 |
| `numpy` | Red Hat:enterprise_linux:8::appstream | All versions | 1:1.14.3-9.el8 |
| `numpy-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 1:1.14.3-9.el8 |
| `python3-numpy` | Red Hat:enterprise_linux:8::appstream | All versions | 1:1.14.3-9.el8 |
| `python3-numpy-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 1:1.14.3-9.el8 |
| `python3-numpy-f2py` | Red Hat:enterprise_linux:8::appstream | All versions | 1:1.14.3-9.el8 |
| `numpy` | Rocky Linux:8 | All versions | 1:1.14.3-9.el8 |
| `python-numpy` | SUSE:Linux Enterprise Desktop 12 SP3 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Desktop 12 SP4 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Module for Basesystem 15 | All versions | 1.14.0-4.5.1 |
| `python-numpy` | SUSE:Linux Enterprise Module for Basesystem 15 | All versions | 1.16.1-4.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Module for Basesystem 15 SP1 | All versions | 1.16.1-4.8.1 |
| `python-numpy_1_13_3-gnu-hpc` | SUSE:Linux Enterprise Module for HPC 12 | All versions | 1.13.3-4.9.1 |
| `python-numpy_1_14_0-gnu-hpc` | SUSE:Linux Enterprise Module for HPC 15 | All versions | 1.14.0-4.5.1 |
| `python-numpy_1_16_1-gnu-hpc` | SUSE:Linux Enterprise Module for HPC 15 | All versions | 1.16.1-4.8.1 |
| `python-numpy_1_16_1-gnu-hpc` | SUSE:Linux Enterprise Module for HPC 15 SP1 | All versions | 1.16.1-4.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Module for Python 2 15 SP1 | All versions | 1.16.1-4.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Point of Sale 11 SP3 | All versions | 1.3.0-1.3.3.1 |
| `python-numpy` | SUSE:Linux Enterprise Server 11 SP4 | All versions | 1.8.0-6.4.1 |
| `python-numpy` | SUSE:Linux Enterprise Server 12 SP3 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Server 12 SP4 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 1.8.0-6.4.1 |
| `python-numpy` | SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Software Development Kit 11 SP4 | All versions | 1.8.0-6.4.1 |
| `python-numpy` | SUSE:Linux Enterprise Software Development Kit 12 SP3 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Linux Enterprise Software Development Kit 12 SP4 | All versions | 1.8.0-5.8.1 |
| `python-numpy` | SUSE:Package Hub 15 SP1 | All versions | 1.16.1-bp151.2.3.1 |
| `python-numpy_1_16_1-gnu-hpc` | SUSE:Package Hub 15 SP1 | All versions | 1.16.1-bp151.2.3.1 |
| `python-numpy` | openSUSE:Leap 15.0 | All versions | 1.16.1-lp150.8.1 |
| `python-numpy_1_16_1-gnu-hpc` | openSUSE:Leap 15.0 | All versions | 1.16.1-lp150.8.1 |
| `python-numpy` | openSUSE:Leap 15.1 | All versions | 1.16.1-lp151.5.3.1 |
| `python-numpy_1_16_1-gnu-hpc` | openSUSE:Leap 15.1 | All versions | 1.16.1-lp151.5.3.1 |

Products: Fedoraproject Fedora, Numpy Numpy.

## How do I fix CVE-2019-6446?

Upgrade numpy to a fixed version for your release line: 1.16.1 or 1.16.3.

## Is CVE-2019-6446 being exploited?

There is no known exploitation of CVE-2019-6446 in the wild and no public exploit code.

Public exploit code:

- Numpy deserialization command execution (github_poc): https://github.com/RayScri/CVE-2019-6446

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2019-6446 and fix it if it is affected.

What it is: CVE-2019-6446 is a critical unsafe deserialization vulnerability in Fedoraproject Fedora, published on 16 Jan 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2019-6446 in the wild and no public exploit code.

Affected packages and fixed versions:
- numpy (PyPI): affected all versions; fixed in 1.16.1
- numpy (PyPI): affected all versions; fixed in 1.16.3
- numpy (PyPI): affected all versions; fixed in 1.16.3

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2019-6446/ (Markdown: https://insights.sbomify.com/CVE-2019-6446/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2019-6446
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2019-6446
- OSV: https://osv.dev/vulnerability/CVE-2019-6446

---
From sbomify Insights: https://insights.sbomify.com/CVE-2019-6446/
Summaries are generated and may contain mistakes; the official description above is the record.
