{"id":"CVE-2020-35655","published":"2021-01-12T08:08:47Z","modified":"2024-08-04T17:09:14Z","title":"In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because…","vendor":null,"product":null,"tier":"tail","description":{"text":"In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01663,"percentile":0.77293,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6BYVI5G44MRIPERKYDQEL3S3YQCZTVHE/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BF553AMNNNBW7SH4IM4MNE4M6GNZQ7YD/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":15.46}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=4.3.0, <8.1.0"],"patched":["8.1.0"],"from":["GHSA-hf64-x4gq-p99h","PYSEC-2021-71"],"provenance":"source"}],"summary":{"text":"The flaw is a 4-byte buffer over-read in the SGIRleDecode routine of Pillow, the Python imaging library, which occurs because offset and length tables are mishandled when decoding SGI RLE image files. An attacker can cause the over-read by supplying a crafted SGI RLE image file that Pillow is asked to decode, so the condition is triggered by processing attacker-controlled image input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:04Z"},"euvd":{"id":"EUVD-2021-0182","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2019-16865","parents":[{"from":"CVE-2019-16865","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/ab52630d0644e42a75eb88b78b9a9d7438a6fbeb","https://github.com/python-pillow/Pillow/commit/2f409261eb1228e166868f8f0b5da5cda52e55bf","https://github.com/python-pillow/Pillow/commit/7e95c63fa7f503f185d3d9eb16b9cee1e54d1e46"],"basis":"shared function","functions":["ImagingSgiRleDecode"]}]},{"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"}]}],"children":[{"from":"CVE-2020-35655","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/2f409261eb1228e166868f8f0b5da5cda52e55bf","https://github.com/python-pillow/Pillow/commit/7e95c63fa7f503f185d3d9eb16b9cee1e54d1e46","https://github.com/python-pillow/Pillow/commit/4853e522bddbec66022c0915b9a56255d0188bf9","https://github.com/python-pillow/Pillow/commit/f891baa604636cd2506a9360d170bc2cf4963cc5"],"basis":"shared function","functions":["ImagingSgiRleDecode"]}]}]}}