What’s Vulnerable › Vulnerabilities
CVE-2020-5312
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2020-01-03 · updated 2026-06-17
- Weakness: CWE-120
Description
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
Affected products
- Canonical Ubuntu Linux: 14.04, 16.04, 18.04, 19.10
- Debian Linux: 9.0, 10.0
- Fedoraproject Fedora: 30, 31
- python-pillow Pillow: before 6.2.2 — fixed in 6.2.2
How to fix
Upgrade to a fixed version: python-pillow Pillow 6.2.2. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2020:0566
- https://access.redhat.com/errata/RHSA-2020:0578
- https://access.redhat.com/errata/RHSA-2020:0580
- https://access.redhat.com/errata/RHSA-2020:0681
- https://access.redhat.com/errata/RHSA-2020:0683
- https://access.redhat.com/errata/RHSA-2020:0694
- https://github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/
- https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html
- https://usn.ubuntu.com/4272-1/
- https://www.debian.org/security/2020/dsa-4631
Get alerted when CVE-2020-5312 or the next vulnerability affects your stack