High
Security advisory
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-5313
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:40 UTC · Revision 1
Source evidence
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.
osv:CVE-2020-5313
Complete source record
{
"id": "18ec13e8144eea07a209ee263b04603cef7861ad1f01989bc81dd84cdd4ed154",
"url": "https://osv.dev/vulnerability/CVE-2020-5313",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-5313",
"summary": "libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.",
"evidence": "osv:CVE-2020-5313",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-5313",
"aliases": [
"BIT-pillow-2020-5313",
"CVE-2020-5313",
"GHSA-hj69-c76v-86wr",
"PYSEC-2020-84"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python-pillow/pillow",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a45c8583ff90312a2fddc38567ed736cef4af563"
},
{
"fixed": "a09acd0decd8a87ccce939d5ff65dab59e7d365b"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.2.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a09acd0decd8a87ccce939d5ff65dab59e7d365b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"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/cve-osv-conversion/osv-output/CVE-2020-5313.json",
"vanir_signatures": [
{
"id": "CVE-2020-5313-b532e49c",
"digest": {
"length": 3419,
"function_hash": "302220455464486737318526284033412250665"
},
"source": "https://github.com/python-pillow/pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b",
"target": {
"file": "src/libImaging/FliDecode.c",
"function": "ImagingFliDecode"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2020-5313-d95c34be",
"digest": {
"threshold": 0.9,
"line_hashes": [
"37157442833106023353193678460912189837",
"270660893983846785194614299295365101477",
"123429680817191715397250062351088262009",
"80828568724056570888061163794266956490",
"200114137639258668432822712228387541758",
"60017815867957894917657944409302113715"
]
},
"source": "https://github.com/python-pillow/pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b",
"target": {
"file": "src/libImaging/FliDecode.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-25T01:16:48Z"
}
}
],
"modified": "2026-10-25T01:16:48.321537699Z",
"provider": "osv",
"references": [
"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",
"https://usn.ubuntu.com/4272-1/",
"https://www.debian.org/security/2020/dsa-4631",
"https://github.com/python-pillow/Pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "14.04"
},
{
"last_affected": "14.04"
},
{
"introduced": "16.04"
},
{
"last_affected": "16.04"
},
{
"introduced": "18.04"
},
{
"last_affected": "18.04"
},
{
"introduced": "19.10"
},
{
"last_affected": "19.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "30"
},
{
"last_affected": "30"
},
{
"introduced": "31"
},
{
"last_affected": "31"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-5313",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 444446,
"published_at": "2020-01-03T01:15:11.32+00:00"
}