libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.
{
"unresolved_ranges": [
{
"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:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"source": "CPE_STRING",
"extracted_events": [
{
"last_affected": "14.04"
},
{
"last_affected": "16.04"
},
{
"last_affected": "18.04"
},
{
"last_affected": "19.10"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"source": "CPE_STRING",
"extracted_events": [
{
"last_affected": "9.0"
},
{
"last_affected": "10.0"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"source": "CPE_STRING",
"extracted_events": [
{
"last_affected": "30"
},
{
"last_affected": "31"
}
]
}
]
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "6.2.2"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
],
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"
}[
{
"target": {
"function": "ImagingPcxDecode",
"file": "src/libImaging/PcxDecode.c"
},
"digest": {
"function_hash": "228195334488469053776152312293290694292",
"length": 1273.0
},
"deprecated": false,
"source": "https://github.com/python-pillow/pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd",
"signature_version": "v1",
"id": "CVE-2020-5312-ac16992a",
"signature_type": "Function"
},
{
"target": {
"file": "src/libImaging/PcxDecode.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"28176007691574792831032194145824532472",
"60039019189674651359812065381069837303",
"70280912336820827533766265349563168504",
"137238534060640963082355829647107153874"
]
},
"deprecated": false,
"source": "https://github.com/python-pillow/pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd",
"signature_version": "v1",
"id": "CVE-2020-5312-b19af775",
"signature_type": "Line"
}
]
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-5312.json"
"2026-05-30T16:10:12Z"