libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
Priority MEDIUM 48CWE-120Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 17 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-120 and the CVSS impact.
Summary
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
Why it matters now
EPSS 0.0369 89th percentileScored 2026-11-07
Fix Partial pillow (PyPI): 6.2.2Red Hat: 5 advisoriesRed Hat: 17 fixed, 1 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | pillow (PyPI) | before 6.2.2 | 6.2.2 | Patch available | GHSA-p49h-hjvm-jg3h |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- pillow (PyPI) Vendor— Affected before 6.2.2 Fixed in 6.2.2 Patch available GHSA-p49h-hjvm-jg3h
CPE configurations NVD · 9
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* | before 6.2.2 | Vulnerable | python-pillow |
| cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* | 14.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* | 16.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* | 18.04 | Vulnerable | Canonical |
| cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* | 19.10 | Vulnerable | Canonical |
| cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
| cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* | 30 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 31 | Vulnerable | Fedoraproject |
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions before 6.2.2 Vulnerable ·python-pillow
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* Versions 14.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* Versions 16.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* Versions 18.04 Vulnerable ·Canonical
- cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* Versions 19.10 Vulnerable ·Canonical
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
- cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* Versions 30 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-p49h-hjvm-jg3h pillow (PyPI) Fixed in 6.2.2 Advisory →
Red Hat 5 advisories
- RHSA-2021:0420 Released 2021-02-04 · Red Hat rating ModerateRed Hat Quay v3.4.0 security update
- Quay v3 quay/clair-rhel8, quay/quay-bridge-operator-bundle, quay/quay-bridge-operator-rhel8 +8
- RHSA-2020:0898 Released 2020-03-18 · Red Hat rating Importantpython-imaging security update
- Red Hat Enterprise Linux Desktop (v. 6) python-imaging-1.1.6-20.el6_10
- Red Hat Enterprise Linux Desktop Optional (v. 6) python-imaging-devel-1.1.6-20.el6_10, python-imaging-sane-1.1.6-20.el6_10, python-imaging-tk-1.1.6-20.el6_10
- Red Hat Enterprise Linux HPC Node Optional (v. 6) python-imaging-1.1.6-20.el6_10, python-imaging-devel-1.1.6-20.el6_10, python-imaging-sane-1.1.6-20.el6_10 +1
- Red Hat Enterprise Linux Server (v. 6) python-imaging-1.1.6-20.el6_10
- Red Hat Enterprise Linux Server Optional (v. 6) python-imaging-1.1.6-20.el6_10, python-imaging-devel-1.1.6-20.el6_10, python-imaging-sane-1.1.6-20.el6_10 +1
- Red Hat Enterprise Linux Workstation (v. 6) python-imaging-1.1.6-20.el6_10
- Red Hat Enterprise Linux Workstation Optional (v. 6) python-imaging-devel-1.1.6-20.el6_10, python-imaging-sane-1.1.6-20.el6_10, python-imaging-tk-1.1.6-20.el6_10
- RHSA-2020:0578 Released 2020-02-24 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux Client (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7
- Red Hat Enterprise Linux Client Optional (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7, python-pillow-devel-2.0.0-20.gitd1c6db8.el7_7, python-pillow-doc-2.0.0-20.gitd1c6db8.el7_7 +3
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7, python-pillow-devel-2.0.0-20.gitd1c6db8.el7_7, python-pillow-doc-2.0.0-20.gitd1c6db8.el7_7 +3
- Red Hat Enterprise Linux Server (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7
- Red Hat Enterprise Linux Server Optional (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7, python-pillow-2.0.0-20.gitd1c6db8.el7_7.ppc, python-pillow-devel-2.0.0-20.gitd1c6db8.el7_7 +5
- Red Hat Enterprise Linux Workstation (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7
- Red Hat Enterprise Linux Workstation Optional (v. 7) python-pillow-2.0.0-20.gitd1c6db8.el7_7, python-pillow-devel-2.0.0-20.gitd1c6db8.el7_7, python-pillow-doc-2.0.0-20.gitd1c6db8.el7_7 +3
Show 2 more Red Hat advisories
- RHSA-2020:0580 Released 2020-02-24 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-10.el8_1, python3-pillow-5.1.1-10.el8_1
- RHSA-2020:0566 Released 2020-02-20 · Red Hat rating Importantpython-pillow security update
- Red Hat Enterprise Linux AppStream E4S (v. 8.0) python-pillow-5.1.1-10.el8_0, python3-pillow-5.1.1-10.el8_0
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Quay v3 | Fixed | RHSA-2021:0420 |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2020:0580 |
| Red Hat Enterprise Linux AppStream E4S (v. 8.0) | Fixed | RHSA-2020:0566 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux Desktop (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Desktop Optional (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux HPC Node Optional (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux Server Optional (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2020:0578 |
| Red Hat Enterprise Linux Workstation Optional (v. 6) | Fixed | RHSA-2020:0898 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2020:0578 |
Timeline
- 2026-10-02 Threatist record created from CVE-2020-5312
- 2026-10-03 Alias added: GHSA-p49h-hjvm-jg3h
References
Advisory 13
- https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html
- FEDORA-2020-df444e464e
- USN-4272-1
- RHSA-2020:0566
- FEDORA-2020-5cdbb19cca
- DSA-4631
- RHSA-2020:0580
- RHSA-2020:0578
- RHSA-2020:0681
- RHSA-2020:0683
- RHSA-2020:0694
- https://nvd.nist.gov/vuln/detail/CVE-2020-5312
- https://github.com/advisories/GHSA-p49h-hjvm-jg3h
Other 6
- https://usn.ubuntu.com/4272-1
- https://lists.fedoraproject.org/archives/list/[email protected]/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A
- https://github.com/python-pillow/Pillow
- https://github.com/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-83.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-83.yaml
Sources
- CVE-2020-5312 · CVE Program
- CVE-2020-5312 · NVD
- FIRST EPSS
- GHSA-p49h-hjvm-jg3h · GitHub Advisory Database · CC BY 4.0
- CVE-2020-5312 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences