{"id":"CVE-2021-25288","published":"2021-06-02T15:13:28Z","modified":"2024-08-03T19:56:11Z","title":"An issue was discovered in Pillow before 8.2.0","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02388,"percentile":0.84347,"provenance":"source"},"cwes":[],"references":[{"url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202107-33","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":16.9,"factors":[{"name":"EPSS percentile","points":16.87}]},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":[">=2.4.0, <8.2.0","<8.2.0"],"patched":["8.2.0"],"from":["GHSA-rwv7-3v45-hg29","PYSEC-2021-138"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds read in the J2kDecode routine, specifically in its j2ku_gray_i handling, within the Pillow imaging library before version 8.2.0. An attacker who can get the affected Pillow code to process a crafted JPEG 2000 image could read memory outside the intended bounds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:41Z"},"euvd":{"id":"EUVD-2021-0168","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pillow-cve-2020-10994","parents":[{"from":"CVE-2020-10994","to":"CVE-2021-25288","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/libImaging/Jpeg2KDecode.c"],"commits":["https://github.com/python-pillow/Pillow/commit/ff60894d697d1992147b791101ad53a8bf1352e4","https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87"],"basis":"shared function","functions":["j2k_decode_entry"]}]}]}}