CVE-2020-5312Python Pillow
Critical 9.8 No auth needed
Follow: this CVE · Python · Python Pillow We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.7% probability of exploitation in 30 days · percentile 91
- Auth required
- No
- Published
- Jan 3, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-120
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
What to do
- Apply the vendor's security update for Pillow.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pillow |
< 6.2.2 |
6.2.2 |
pip install "pillow>=6.2.2" |
| PyPI | pillow |
< 6.2.2 |
6.2.2 |
pip install "pillow>=6.2.2" |
Per OSV / GitHub Advisories (GHSA-p49h-hjvm-jg3h, PYSEC-2020-83). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | pillow | < 6.2.2 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 19.10 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 30 |
| fedoraproject | fedora | 31 |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- github.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- pillow.readthedocs.io Release Notes Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory