Vulnerabilities · 2020 · Python
CVE-2020-5312
Python Pillow vulnerability
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Pillow, Ubuntu Linux, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Pillow runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd · Patch
- access.redhat.com/errata/RHSA-2020:0566 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0578 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0580 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0681 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0683 · Third Party Advisory
- access.redhat.com/errata/RHSA-2020:0694 · Third Party Advisory
- pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-5312
- cve.org/CVERecord?id=CVE-2020-5312
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.