{"id":"CVE-2021-25289","published":"2021-03-19T03:29:48Z","modified":"2024-08-03T19:56:11Z","title":"An issue was discovered in Pillow before 8.1.1","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02032,"percentile":0.81688,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":16.34}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<8.1.1"],"patched":["8.1.1"],"from":["GHSA-57h3-9rgr-c24m","PYSEC-2021-35"],"provenance":"source"}],"summary":{"text":"The flaw is a heap-based buffer overflow in the TiffDecode component of Pillow, the Python imaging library, in versions before 8.1.1. It arises from interpretation conflicts with LibTIFF when decoding YCbCr TIFF files in RGBA mode, and it stems from an incomplete fix for an earlier issue.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:16Z"},"euvd":{"id":"EUVD-2021-0172","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2020-5310","parents":[{"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"}]}]}}