Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2019-6446 EUVD-2019-0098GHSA-9fq2-x9r6-wfmfPYSEC-2019-108

Numpy Deserialization of Untrusted Data

Published Jan 16, 2019 · Updated Jul 21, 2025 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
RHEL 8 Cython +1 0.28.1-7.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 PyYAML +1 3.12-16.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 babel +1 2.5.1-9.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 numpy +3 1:1.14.2-13.module+el8.1.0+3323+7ac3e00f RHSA-2019:3704, RHSA-2019:3335
RHEL 8 pytest +1 3.4.2-13.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-PyMySQL +1 0.8.0-10.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-attrs +1 17.4.0-10.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-backports +1 1.0-15.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-backports-ssl_match_hostname +1 3.5.0.1-11.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-chardet +1 3.0.4-10.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-coverage +1 4.5.1-4.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-dns +1 1.15.0-10.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-docs +2 2.7.16-2.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-docutils +1 0.14-12.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-funcsigs +1 1.0.2-13.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-idna +1 2.5-7.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-ipaddress +1 1.0.18-6.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-jinja2 +1 2.10-8.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-lxml +1 4.2.3-3.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-markupsafe +1 0.23-19.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-mock +1 2.0.0-13.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-nose +2 1.3.7-30.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-pluggy +1 0.6.0-8.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-psycopg2 +4 2.7.5-7.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-py +1 1.5.3-6.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-pygments +1 2.2.0-20.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-pysocks +1 1.6.8-6.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-pytest-mock +1 1.9.0-4.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-requests +1 2.20.0-2.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-setuptools_scm +1 1.15.7-6.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-six +1 1.11.0-5.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python-sqlalchemy +2 1.3.2-1.module+el8.1.0+2994+98e054d6 RHSA-2019:3335
RHEL 8 python-urllib3 +1 1.24.2-1.module+el8.1.0+3280+19512f10 RHSA-2019:3335
RHEL 8 python-virtualenv +1 15.1.0-19.module+el8.1.0+3507+d69c168d RHSA-2019:3335
RHEL 8 python-wheel +2 1:0.31.1-2.module+el8.1.0+3725+aac5cd17 RHSA-2019:3335
RHEL 8 python2 +6 2.7.16-12.module+el8.1.0+4148+33a50073 RHSA-2019:3335
RHEL 8 python2-bson +3 3.6.1-11.module+el8.1.0+3446+c3d52da3 RHSA-2019:3335
RHEL 8 python2-pip +1 9.0.3-14.module+el8.1.0+3446+c3d52da3 RHSA-2019:3335
RHEL 8 python2-rpm-macros 3-38.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 python2-setuptools +1 39.0.1-11.module+el8.1.0+3446+c3d52da3 RHSA-2019:3335
RHEL 8 python3-numpy +1 1:1.14.3-9.el8 RHSA-2019:3704
RHEL 8 pytz +1 2017.2-12.module+el8.1.0+3111+de3f2d8e RHSA-2019:3335
RHEL 8 scipy +1 1.0.0-20.module+el8.1.0+3323+7ac3e00f RHSA-2019:3335

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 python2-Cython 0.28.1-7.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-PyMySQL 0.8.0-10.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-attrs 17.4.0-10.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-chardet 3.0.4-10.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-coverage 4.5.1-4.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-dns 1.15.0-10.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-docs +1 2.7.16-2.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-docutils 0.14-12.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-funcsigs 1.0.2-13.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-idna 2.5-7.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-ipaddress 1.0.18-6.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-markupsafe 0.23-19.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-mock 2.0.0-13.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pluggy 0.6.0-8.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-psycopg2 +3 2.7.5-7.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-py 1.5.3-6.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pysocks 1.6.8-6.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pytest 3.4.2-13.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pytest-mock 1.9.0-4.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pytz 2017.2-12.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-pyyaml 3.12-16.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-rpm-macros 3-38.module_el8.6.0+2781+fed64c13 ALSA-2019:3335
AlmaLinux 8 python2-setuptools_scm 1.15.7-6.module_el8.6.0+2781+fed64c13 ALSA-2019:3335

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 Cython 0.28.1-7.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 PyYAML 3.12-16.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 babel 2.5.1-9.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 numpy 1:1.14.3-9.el8 RLSA-2019:3704
Rocky Linux 8 pytest 3.4.2-13.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-PyMySQL 0.8.0-10.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-attrs 17.4.0-10.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-chardet 3.0.4-10.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-coverage 4.5.1-4.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-dns 1.15.0-10.el8 RLSA-2019:3335
Rocky Linux 8 python-docs 2.7.16-2.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-docutils 0.14-12.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-funcsigs 1.0.2-13.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-idna 2.5-7.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-ipaddress 1.0.18-6.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-jinja2 2.10-8.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-lxml 4.2.3-3.el8 RLSA-2019:3335
Rocky Linux 8 python-markupsafe 0.23-19.el8 RLSA-2019:3335
Rocky Linux 8 python-mock 2.0.0-13.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-nose 1.3.7-30.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-pluggy 0.6.0-8.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-psycopg2 2.7.5-7.el8 RLSA-2019:3335
Rocky Linux 8 python-py 1.5.3-6.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-pygments 2.2.0-20.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-pymongo 3.6.1-11.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-pysocks 1.6.8-6.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-pytest-mock 1.9.0-4.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-setuptools_scm 1.15.7-6.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 python-virtualenv 15.1.0-19.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python-wheel 1:0.31.1-2.module+el8.3.0+120+426d8baf RLSA-2019:3335
Rocky Linux 8 python2-rpm-macros 3-38.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 pytz 2017.2-12.module+el8.4.0+403+9ae17a31 RLSA-2019:3335
Rocky Linux 8 scipy 1.0.0-20.module+el8.3.0+120+426d8baf RLSA-2019:3335
ReleasePackageFixed inAdvisory
SLES 15 SP1 python-numpy +1 1.16.1-4.8.1 SUSE-SU-2019:2462-2
SLES 15 python-numpy +1 1.14.0-4.5.1 SUSE-SU-2019:2462-1, SUSE-SU-2019:0418-1
SLES 15 python-numpy_1_16_1-gnu-hpc 1.16.1-4.8.1 SUSE-SU-2019:2462-1
SLES 12 SP4 python-numpy 1.8.0-5.8.1 SUSE-SU-2019:0419-1
SLES 12 SP3 python-numpy 1.8.0-5.8.1 SUSE-SU-2019:0419-1
SLES 12 python-numpy_1_13_3-gnu-hpc 1.13.3-4.9.1 SUSE-SU-2019:0448-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 11 SP4 python-numpy 1.8.0-6.4.1 SUSE-SU-2019:13951-1
SLES 2 python-numpy 1.16.1-4.8.1 SUSE-SU-2019:2462-2
SLES for SAP 12 SP4 python-numpy 1.8.0-5.8.1 SUSE-SU-2019:0419-1
SLES for SAP 12 SP3 python-numpy 1.8.0-5.8.1 SUSE-SU-2019:0419-1
SLES for SAP 11 SP4 python-numpy 1.8.0-6.4.1 SUSE-SU-2019:13951-1
SUSE Package Hub 15 SP1 python-numpy +1 1.16.1-bp151.2.3.1 openSUSE-SU-2019:2259-1
SUSE Linux Enterprise Point of Sale 11 SP3 python-numpy 1.3.0-1.3.3.1 SUSE-SU-2019:13977-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-numpy 1.21.2-1.1 openSUSE-SU-2026:11371-1, openSUSE-SU-2024:13820-1, openSUSE-SU-2024:11243-1
openSUSE Tumbleweed python-numpy1 1.26.4-1.1 openSUSE-SU-2024:14311-1
openSUSE Leap 15.1 python-numpy +1 1.16.1-lp151.5.3.1 openSUSE-SU-2019:2227-1
openSUSE Leap 15.0 python-numpy +1 1.16.1-lp150.8.1 openSUSE-SU-2019:2225-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 babel +1 2.5.1-9.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2 +6 2.7.16-12.0.1.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-Cython 0.28.1-7.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-PyMySQL 0.8.0-10.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-attrs 17.4.0-10.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-backports 1.0-15.0.1.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-backports-ssl_match_hostname 3.5.0.1-11.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-bson +2 3.6.1-11.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-chardet 3.0.4-10.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-coverage 4.5.1-4.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-dns 1.15.0-10.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-docs +1 2.7.16-2.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-docutils 0.14-12.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-funcsigs 1.0.2-13.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-idna 2.5-7.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-ipaddress 1.0.18-6.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-jinja2 2.10-8.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-lxml 4.2.3-3.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-markupsafe 0.23-19.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-mock 2.0.0-13.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-nose +1 1.3.7-30.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-numpy +2 1:1.14.2-13.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pip +1 9.0.3-14.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pluggy 0.6.0-8.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-psycopg2 +3 2.7.5-7.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-py 1.5.3-6.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pygments 2.2.0-20.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pysocks 1.6.8-6.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pytest 3.4.2-13.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pytest-mock 1.9.0-4.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pytz 2017.2-12.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-pyyaml 3.12-16.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-requests 2.20.0-2.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-rpm-macros 3-38.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-scipy 1.0.0-20.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-setuptools +1 39.0.1-11.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-setuptools_scm 1.15.7-6.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-six 1.11.0-5.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-sqlalchemy +1 1.3.2-1.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-urllib3 1.24.2-1.0.2.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-virtualenv 15.1.0-19.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python2-wheel +1 1:0.31.1-2.module+el8.1.0+5396+a4103ad2 ELSA-2019-3335
Oracle Linux 8 python3-numpy +1 1:1.14.3-9.el8 ELSA-2019-3704

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI numpy < 1.16.3 1.16.3 GHSA-9fq2-x9r6-wfmf
PyPI numpy < 1.16.1 1.16.1 PYSEC-2019-108

Advisories 21

References