{"id":"CVE-2020-35654","published":"2021-01-12T08:06:55Z","modified":"2024-08-04T17:09:14Z","title":"In Pillow before 8.1.0, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of…","vendor":null,"product":null,"tier":"tail","description":{"text":"In Pillow before 8.1.0, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01867,"percentile":0.7982,"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"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZTSY25UJU7NJUFHH3HWT575LT4TDFWBZ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TQQY6472RX4J2SUJENWDZAWKTJJGP2ML/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":16.0,"factors":[{"name":"EPSS percentile","points":15.96}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<8.1.0"],"patched":["8.1.0"],"from":["GHSA-vqcj-wrf2-7v73","PYSEC-2021-70"],"provenance":"source"}],"summary":{"text":"The flaw is a heap-based buffer overflow in the TiffDecode component of Pillow, affecting releases before 8.1.0. It arises when the library decodes crafted YCbCr TIFF files, due to interpretation conflicts with LibTIFF in RGBA mode.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:47Z"},"euvd":{"id":"EUVD-2021-0181","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2020-5310","parents":[{"from":"CVE-2020-5310","to":"CVE-2020-35654","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c","https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]},{"from":"CVE-2020-10379","to":"CVE-2020-35654","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/46f4a349b88915787fea3fb91348bb1665831bbb","https://github.com/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c"],"basis":"shared function","functions":["ImagingLibTiffDecode","ReadTile"]}]}],"children":[{"from":"CVE-2020-35654","to":"CVE-2021-25289","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.","from":"CVE.org","in":"CVE-2021-25289"},{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c","https://github.com/python-pillow/Pillow/commit/3fee28eb9479bf7d59e0fa08068f9cc4a6e2f04c","https://github.com/python-pillow/Pillow/commit/cbfdde7b1f2295059a20a539ee9960f0bec7b299"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.96,"basis":"same package + description similarity"}]},{"from":"CVE-2020-35654","to":"CVE-2021-25291","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/TiffDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/eb8c1206d6b170d4e798a00db7432e023853da5c","https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61","https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]}]}}