{"id":"CVE-2021-25291","published":"2021-03-19T03:30:09Z","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. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01398,"percentile":0.73121,"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":14.6,"factors":[{"name":"EPSS percentile","points":14.62}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<8.2.0","<8.1.1"],"patched":["8.2.0","8.1.1"],"from":["GHSA-mvg9-xffr-p774","PYSEC-2021-37"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds read in the TiffDecode.c component of Pillow, the Python imaging library, affecting versions before 8.1.1. It is triggered in the TiffreadRGBATile function when invalid tile boundaries are processed. An attacker can cause the library to read memory outside the intended buffer by supplying a crafted TIFF image with invalid tile boundaries.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:26Z"},"euvd":{"id":"EUVD-2021-0174","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2020-5310","parents":[{"from":"CVE-2020-5310","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/4e2def2539ec13e53a82e06c4b3daf00454100c4","https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61","https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]},{"from":"CVE-2020-10379","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/46f4a349b88915787fea3fb91348bb1665831bbb","https://github.com/python-pillow/Pillow/commit/8b8076bdcb3815be0ef0d279651d8d1342b8ea61","https://github.com/python-pillow/Pillow/commit/cbdce6c5d054fccaf4af34b47f212355c64ace7a"],"basis":"shared function","functions":["ImagingLibTiffDecode"]}]},{"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"]}]}]}}