Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. psutil
  4. ›
  5. CVE-2019-18874

CVE-2019-18874: Double Free in psutil

March 12, 2020 (updated October 21, 2024)

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.

References

  • github.com/advisories/GHSA-qfc5-mcwq-26q8
  • github.com/giampaolo/psutil
  • github.com/giampaolo/psutil/blob/master/HISTORY.rst
  • github.com/giampaolo/psutil/commit/7d512c8e4442a896d56505be3e78f1156f443465
  • github.com/giampaolo/psutil/pull/1616
  • github.com/pypa/advisory-database/tree/main/vulns/psutil/PYSEC-2019-41.yaml
  • lists.debian.org/debian-lts-announce/2019/11/msg00018.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG
  • nvd.nist.gov/vuln/detail/CVE-2019-18874
  • usn.ubuntu.com/4204-1

Code Behaviors & Features

Detect and mitigate CVE-2019-18874 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.6.6

Fixed versions

  • 5.6.6

Solution

Upgrade to version 5.6.6 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

pypi/psutil/CVE-2019-18874.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.