{"id":"CVE-2020-5311","published":"2020-01-03T00:52:42Z","modified":"2024-08-04T08:22:09Z","title":"libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow","vendor":null,"product":null,"tier":"tail","description":{"text":"libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04081,"percentile":0.90952,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4272-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0566","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.debian.org/security/2020/dsa-4631","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0580","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":18.19}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<6.2.2"],"patched":["6.2.2"],"from":["GHSA-r7rm-8j6h-r933","PYSEC-2020-82"],"provenance":"source"}],"summary":{"text":"The flaw is a buffer overflow in the SGI image decoder (libImaging/SgiRleDecode.c), part of the Pillow imaging library, affecting versions before 6.2.2.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:20:43Z"},"euvd":{"id":"EUVD-2020-0135","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2019-16865","parents":[{"from":"CVE-2019-16865","to":"CVE-2020-5311","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/SgiRleDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/ab52630d0644e42a75eb88b78b9a9d7438a6fbeb","https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3"],"basis":"shared function","functions":["ImagingSgiRleDecode"]}]}],"children":[{"from":"CVE-2020-5311","to":"CVE-2020-11538","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/SgiRleDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/2ef59fdbaeb756bc512ab3f2ad15ac45665b303d","https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3"],"basis":"shared function","functions":["expandrow","expandrow2","read4B"]},{"kind":"similar","provenance":"machine","score":0.83,"basis":"same package + description similarity"}]},{"from":"CVE-2020-5311","to":"CVE-2020-35655","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/SgiRleDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/2f409261eb1228e166868f8f0b5da5cda52e55bf","https://github.com/python-pillow/Pillow/commit/7e95c63fa7f503f185d3d9eb16b9cee1e54d1e46","https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3"],"basis":"shared function","functions":["ImagingSgiRleDecode"]},{"kind":"similar","provenance":"machine","score":0.51,"basis":"same package + description similarity"}]},{"from":"CVE-2020-5311","to":"CVE-2021-25293","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/SgiRleDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/a79b65c47c7dc6fe623aadf09aa6192fc54548f3","https://github.com/python-pillow/Pillow/commit/4853e522bddbec66022c0915b9a56255d0188bf9","https://github.com/python-pillow/Pillow/commit/f891baa604636cd2506a9360d170bc2cf4963cc5"],"basis":"shared function","functions":["ImagingSgiRleDecode","expandrow","expandrow2","read4B"]}]}]}}