| Name | CVE-2016-3076 | 
| Description | Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file. | 
| 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) | 
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 | (unstable) | 3.2.0-1 | unimportant |  |  | 
| python-imaging | source | (unstable) | (unfixed) | unimportant |  |  | 
Notes
https://github.com/python-pillow/Pillow/commit/a1f244343df389cf15cdfff80327594821097295 (3.2.0)
https://github.com/python-pillow/Pillow/commit/d00d8571c2cc7e0f137e4ce4b3669d0698dee79b (3.1.2)
Marked as unimportant since source vulnerable but in Debian we do
not built against openjpeg by default