{"id":"CVE-2020-5312","details":"libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.","aliases":["BIT-pillow-2020-5312","GHSA-p49h-hjvm-jg3h","PYSEC-2020-83"],"modified":"2026-05-30T16:10:12.075249Z","published":"2020-01-03T01:15:11.243Z","related":["SUSE-RU-2020:2072-1","SUSE-RU-2020:2161-1","SUSE-SU-2020:1901-1","SUSE-SU-2020:2057-1"],"database_specific":{"unresolved_ranges":[{"source":"CPE_STRING","cpes":["cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"14.04"},{"last_affected":"16.04"},{"last_affected":"18.04"},{"last_affected":"19.10"}],"vendor_product":"canonical:ubuntu_linux"},{"source":"CPE_STRING","cpes":["cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"9.0"},{"last_affected":"10.0"}],"vendor_product":"debian:debian_linux"},{"source":"CPE_STRING","cpes":["cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"30"},{"last_affected":"31"}],"vendor_product":"fedoraproject:fedora"}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0566"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0578"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0580"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0681"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0683"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0694"},{"type":"ADVISORY","url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4272-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2020/dsa-4631"},{"type":"FIX","url":"https://github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python-pillow/pillow","events":[{"introduced":"0"},{"fixed":"a45c8583ff90312a2fddc38567ed736cef4af563"},{"fixed":"93b22b846e0269ee9594ff71a72bec02d2bea8fd"}],"database_specific":{"source":["CPE_RANGE","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"6.2.2"}],"cpe":"cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"}}],"versions":["6.2.1","6.2.0","6.1.0","6.0.0","5.4.0","5.3.0","5.2.0","5.1.0","5.0.0","4.3.0","4.2.0","4.1.0","4.0.0","4.0.0a","3.4.0","3.3.0","3.2.0","3.1.0","3.1.0-rc1","2.9.0","2.9.0.dev2","2.9.0.dev1","2.9.0.dev0","2.8.1","2.8.0","2.7.0","2.5.0","2.3.0","2.2.1","2.2.0","2.1.0","2.0.0","1.7.8","1.7.7","1.2","1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-5312.json","vanir_signatures_modified":"2026-05-30T16:10:12Z","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","digest":{"function_hash":"228195334488469053776152312293290694292","length":1273},"deprecated":false,"id":"CVE-2020-5312-ac16992a","source":"https://github.com/python-pillow/pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd","target":{"file":"src/libImaging/PcxDecode.c","function":"ImagingPcxDecode"}},{"signature_type":"Line","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["28176007691574792831032194145824532472","60039019189674651359812065381069837303","70280912336820827533766265349563168504","137238534060640963082355829647107153874"]},"deprecated":false,"id":"CVE-2020-5312-b19af775","source":"https://github.com/python-pillow/pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd","target":{"file":"src/libImaging/PcxDecode.c"}}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}