Double Free in psutil
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | psutil | < 5.6.6 | 5.6.6 |
References
- https://github.com/giampaolo/psutil/pull/1616
- https://lists.debian.org/debian-lts-announce/2019/11/msg00018.html
- https://usn.ubuntu.com/4204-1/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG/
- https://github.com/advisories/GHSA-qfc5-mcwq-26q8
- https://nvd.nist.gov/vuln/detail/CVE-2019-18874
- https://github.com/giampaolo/psutil/commit/7d512c8e4442a896d56505be3e78f1156f443465
- https://github.com/giampaolo/psutil
- https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#566
- https://github.com/pypa/advisory-database/tree/main/vulns/psutil/PYSEC-2019-41.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2P7QI7MOTZTFXQYU23CP3RAWXCERMOAS
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OLETTJYZL2SMBUI4Q2NGBMGPDPP54SRG
- https://usn.ubuntu.com/4204-1
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-415- Platform
- Python (PyPI)
- Package
psutil- Disclosed
- 12.11.2019
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2019-41 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-qfc5-mcwq-26q8 - CC BY 4.0
Vulnerability history: psutil
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.