| Name | CVE-2021-25288 | 
| Description | An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
| Debian Bugs | 989062 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| pillow (PTS) | bullseye (security), bullseye | 8.1.2+dfsg-0.3+deb11u2 | fixed | 
|  | bookworm, bookworm (security) | 9.4.0-1.1+deb12u1 | fixed | 
|  | trixie | 11.1.0-5 | fixed | 
|  | forky | 11.3.0-1 | fixed | 
|  | sid | 12.0.0-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| pillow | source | experimental | 8.2.0-1 |  |  |  | 
| pillow | source | (unstable) | 8.1.2+dfsg-0.2 | unimportant |  | 989062 | 
Notes
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
Debian packages are built without JPEG2000 support