{"id":"CVE-2020-5311","aliases":["BIT-pillow-2020-5311","GHSA-r7rm-8j6h-r933","PYSEC-2020-82"],"url":"https://o3.security/vulnerability/CVE-2020-5311","summary":"Buffer Copy without Checking Size of Input in Pillow","details":"libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.","published":"2020-01-03T01:15:11.167Z","modified":"2026-08-07T15:13:41.445952Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"pillow","fixedVersion":"6.2.2"}],"fix":{"url":"https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3","label":"python-pillow/Pillow@a79b65c"},"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:0580"},{"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/a79b65c47c7dc6fe623aadf09aa6192fc54548f3"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T15:13:41.445952Z"}}