CVE-2019-18874 json
Double Free in psutil
published 2019-11-12 6 y ago modified 2026-06-17 4 mo ago also GHSA-qfc5-mcwq-26q8 , PYSEC-2019-41 , EUVD-2019-0104
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.5%
- EPSS 3.5% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
psutil (aka python-psutil) through 5.6.5 can have a double free. This occurs because of refcount mishandling within a while or for loop that converts system data into a Python object.
Patch / fix
- pypi psutil 5.6.6
- python-psutil Debian 14, Debian 13, Debian 12 5.6.7-1
debian advisories DEBIAN-CVE-2019-18874
- python-psutil Ubuntu 16.04 LTS 3.4.2-1ubuntu0.1
- python-psutil Ubuntu 18.04 LTS 5.4.2-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2019-18874
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- tfm satellite capsule 6.9, satellite 6.9 6.1-4.el7sat
- kobo satellite capsule 6.9, satellite 6.9 0.5.1-1.el7sat
- pulp satellite capsule 6.9, satellite 6.9 2.21.5-2.el7sat
- gofer satellite capsule 6.9, satellite 6.9 2.12.5-7.el7sat
- future satellite capsule 6.9, satellite 6.9 0.16.0-11.el7sat
- ostree satellite capsule 6.9, satellite 6.9 2017.1-2.atomic.el7
- foreman satellite capsule 6.9, satellite 6.9 2.3.1.20-1.el7sat
- katello satellite capsule 6.9, satellite 6.9 3.18.1-3.el7sat
red hat advisories RHSA-2021:1313RHSA-2021:4162RHSA-2020:4299RHSA-2021:4324RHSA-2020:2593RHSA-2020:2583
- kibana OpenStack Cloud 7 4.6.3-5.1
- ansible OpenStack Cloud 7 2.2.3.0-12.2
- grafana OpenStack Cloud 7 4.6.5-1.14.1
- memcached OpenStack Cloud 7 1.5.17-3.6.1
- python-py OpenStack Cloud 7 1.8.1-11.12.1
- zookeeper OpenStack Cloud 7 3.4.10-6.1
- crowbar-ha OpenStack Cloud 7 4.0+git.1585316203.d6ad2c8-4.52.4
- keepalived OpenStack Cloud 7 2.0.19-1.8.1
suse advisories SUSE-RU-2020:2072-1SUSE-SU-2020:1901-1SUSE-SU-2019:3068-1
- python38-py AlmaLinux 8 1.8.0-8.module_el8.6.0+2778+cd494b30
- python38-ply AlmaLinux 8 3.11-10.module_el8.6.0+2778+cd494b30
- python38-six AlmaLinux 8 1.12.0-10.module_el8.6.0+2778+cd494b30
- python38-cffi AlmaLinux 8 1.13.2-3.module_el8.6.0+2778+cd494b30
- python38-idna AlmaLinux 8 2.8-6.module_el8.6.0+2778+cd494b30
- python38-pytz AlmaLinux 8 2019.3-3.module_el8.6.0+2778+cd494b30
- python38-attrs AlmaLinux 8 19.3.0-3.module_el8.6.0+2778+cd494b30
- python38-babel AlmaLinux 8 2.7.0-11.module_el8.6.0+2778+cd494b30
almalinux advisories ALSA-2021:4162ALSA-2021:4324
- pytz Rocky Linux 8 2019.3-3.module+el8.4.0+570+c2eaf144
- babel Rocky Linux 8 2.7.0-11.module+el8.5.0+672+ab6eb015
- numpy Rocky Linux 8 1.17.3-6.module+el8.5.0+672+ab6eb015
- scipy Rocky Linux 8 1.3.1-4.module+el8.5.0+672+ab6eb015
- scipy Rocky Linux 8 1.3.1-4.module+el8.4.0+570+c2eaf144
- Cython Rocky Linux 8 0.29.14-4.module+el8.4.0+570+c2eaf144
- pytest Rocky Linux 8 4.6.6-3.module+el8.4.0+570+c2eaf144
- PyYAML Rocky Linux 8 5.4.1-1.module+el8.5.0+672+ab6eb015
rocky linux advisories RLSA-2021:4162RLSA-2021:4324
- py-psutil Alpine 3.10 5.6.3-r1
- py-psutil Alpine 3.8 5.4.6-r1
- py-psutil Alpine 3.9 5.5.0-r1
- py3-psutil Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 5.6.7-r0
alpine advisories ALPINE-CVE-2019-18874
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/giampaolo/psutil@7d512c8 commit
- github.com/giampaolo/psutil#1616 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2019-18874 updated cvss 0.0
python-psutil: Double free because of refcount mishandling
-
Red Hat CloudForms Management Engine 5 python-psutil, python2-psutil, python3-psutil Red Hat OpenStack Platform 10 (Newton) python-psutil Red Hat OpenStack Platform 13 (Queens) python-psutil Red Hat OpenStack Platform 14 (Rocky) python-psutil Red Hat OpenStack Platform 15 (Stein) python3-psutil Red Hat OpenStack Platform 16.1 python3-psutilaffected: no fix planned “Will not fix”
-
Red Hat Quay 3 python-psutilaffected: no fix available
-
Red Hat Ansible Tower 3.6 for RHEL 7 ansible-tower-36/ansible-runner-rhel7 1.4.4-2fixed: vendor fix RHSA-2020:4255
-
Red Hat Ansible Tower 3.7 for RHEL 7 ansible-tower-37/ansible-tower-rhel7 3.7.4-1, ansible-tower-37/ansible-runner-rhel7 1.4.6-2fixed: vendor fix RHSA-2020:4254
-
Red Hat CodeReady Linux Builder (v. 8) pytest 4.6.6-3.module+el8.4.0+8888+89bc7e79, python-py 1.8.0-8.module+el8.4.0+8888+89bc7e79, python38-py 1.8.0-8.module+el8.4.0+8888+89bc7e79, python-attrs 19.3.0-3.module+el8.4.0+8888+89bc7e79, python-pluggy 0.13.0-3.module+el8.4.0+8888+89bc7e79, python-packaging 19.2-3.module+el8.4.0+8888+89bc7e79, +12 more Red Hat Enterprise Linux AppStream (v. 8) python-psutil 5.4.3-11.el8, python3-psutil 5.4.3-11.el8, pytz 2019.3-3.module+el8.4.0+8888+89bc7e79, scipy 1.3.1-4.module+el8.4.0+8888+89bc7e79, babel 2.7.0-11.module+el8.5.0+11015+9c1c7c42, numpy 1.17.3-6.module+el8.5.0+12205+a865257a, +61 morefixed: vendor fix RHSA-2021:4162
-
Red Hat OpenShift Container Platform 4.2 python-psutil 5.6.6-1.el7ar, python2-psutil 5.6.6-1.el7arfixed: vendor fix RHSA-2020:2593
-
Red Hat OpenShift Container Platform 4.3 python-psutil 5.6.6-1.el7ar, python2-psutil 5.6.6-1.el7arfixed: vendor fix RHSA-2020:2635
-
Red Hat OpenShift Container Platform 4.4 python-psutil 5.6.6-1.el7ar, python2-psutil 5.6.6-1.el7arfixed: vendor fix RHSA-2020:2583
show 3 moreshow fewer
-
Red Hat Satellite 6.9 python-psutil 5.7.2-2.el7sat, python2-psutil 5.7.2-2.el7sat Red Hat Satellite Capsule 6.9 python-psutil 5.7.2-2.el7sat, python2-psutil 5.7.2-2.el7satfixed: vendor fix RHSA-2021:1313
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-python38-python 3.8.6-1.el7, rh-python38-python-idle 3.8.6-1.el7, rh-python38-python-libs 3.8.6-1.el7, rh-python38-python-test 3.8.6-1.el7, rh-python38-python-psutil 5.6.4-5.el7, rh-python38-python-tkinter 3.8.6-1.el7, +3 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-python38-python 3.8.6-1.el7, rh-python38-python-idle 3.8.6-1.el7, rh-python38-python-libs 3.8.6-1.el7, rh-python38-python-test 3.8.6-1.el7, rh-python38-python-psutil 5.6.4-5.el7, rh-python38-python-tkinter 3.8.6-1.el7, +3 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-python38-python 3.8.6-1.el7, rh-python38-python-idle 3.8.6-1.el7, rh-python38-python-libs 3.8.6-1.el7, rh-python38-python-test 3.8.6-1.el7, rh-python38-python-psutil 5.6.4-5.el7, rh-python38-python-tkinter 3.8.6-1.el7, +3 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-python38-python 3.8.6-1.el7, rh-python38-python-idle 3.8.6-1.el7, rh-python38-python-libs 3.8.6-1.el7, rh-python38-python-test 3.8.6-1.el7, rh-python38-python-psutil 5.6.4-5.el7, rh-python38-python-tkinter 3.8.6-1.el7, +3 morefixed: vendor fix RHSA-2020:4299
-
Red Hat Enterprise Linux 9 python3-psutil, python3-psutil-tests Red Hat Satellite 6.9 tfm 6.1-4.el7sat, kobo 0.5.1-1.el7sat, pulp 2.21.5-2.el7sat, gofer 2.12.5-7.el7sat, libsolv 0.7.12-2.el7pc, receptor 0.6.3-1.el7ar, +637 more Red Hat Satellite Capsule 6.9 tfm 6.1-4.el7sat, kobo 0.5.1-1.el7sat, pulp 2.21.5-2.el7sat, gofer 2.12.5-7.el7sat, libsolv 0.7.12-2.el7pc, future 0.16.0-11.el7sat, +236 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.52% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | psutil | <5.6.6 |
5.6.6 |
Classification
- Weakness
-
- CWE-415 Double Free
References
-
github.com
/giampaolo/psutil/pull/1616
web, third-party-advisory
-
github.com
/giampaolo/psutil/commit/7d512c8e4442a896d56505be3e78f1156f443465
web
-
usn.ubuntu.com
/4204-1/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG/
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/11/msg00018.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2019-18874
advisory
-
github.com
/advisories/GHSA-qfc5-mcwq-26q8
advisory
-
github.com
/giampaolo/psutil
package
-
github.com
/giampaolo/psutil/blob/master/HISTORY.rst#566
web
-
github.com
/pypa/advisory-database/tree/main/vulns/psutil/PYSEC-2019-41.yaml
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG
web
-
usn.ubuntu.com
/4204-1
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG/
web
Sources
- CVE List CVE-2019-18874
- GitHub Advisory GHSA-qfc5-mcwq-26q8
- NVD CVE-2019-18874
- OSV PYSEC-2019-41
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.