Skip to content
Fencer Vulns
high 7.5

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

  • python-psutil CBL-Mariner 2.0 5.9.0-1

azure linux advisories AZL-6810

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

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-psutil
    affected: no fix planned “Will not fix”
  • Red Hat Quay 3 python-psutil
    affected: no fix available
  • Red Hat Ansible Tower 3.6 for RHEL 7 ansible-tower-36/ansible-runner-rhel7 1.4.4-2
    fixed: 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-2
    fixed: 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 more
    fixed: 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.el7ar
    fixed: 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.el7ar
    fixed: 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.el7ar
    fixed: vendor fix RHSA-2020:2583
show 3 more
  • 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.el7sat
    fixed: 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 more
    fixed: 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 more
    not 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

References

Sources

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.