CVE-2020-5312
CRITICAL 9.8CVSS 3.1PCX P mode buffer overflow in Pillow
libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
- Published
- 3 Jan 2020
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120
- Also known as
- BIT-pillow-2020-5312GHSA-p49h-hjvm-jg3hPYSEC-2020-83
- Sources
- NVDJSONOSV GHSA-p49h-hjvm-jg3hJSONOSV PYSEC-2020-83JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
< 6.2.2 | 6.2.2 |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* |
= 19.10 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* |
= 30 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* |
= 31 | |
| OSV | PyPI | pillow | < 6.2.2 | 6.2.2 |
References
- https://access.redhat.com/errata/RHSA-2020:0566 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2020:0578 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2020:0580 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2020:0681 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2020:0683 · Third Party Advisory, WEB, ADVISORY
- https://access.redhat.com/errata/RHSA-2020:0694 · Third Party Advisory, WEB, ADVISORY
- https://github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd · Patch, Third Party Advisory, WEB, FIX
- 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 · Release Notes, Third Party Advisory, WEB
- https://usn.ubuntu.com/4272-1/ · Third Party Advisory, WEB
- https://www.debian.org/security/2020/dsa-4631 · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-5312 · ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A · WEB
- https://github.com/python-pillow/Pillow · PACKAGE
- https://github.com/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-83.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-83.yaml · WEB
- https://github.com/advisories/GHSA-p49h-hjvm-jg3h · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 3 Jan 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Jan 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Nov 2021)