| Name | CVE-2020-5310 | 
| Description | libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc. | 
| 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 | 948224 | 
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 | jessie | (not affected) |  |  |  | 
| pillow | source | stretch | (not affected) |  |  |  | 
| pillow | source | buster | (not affected) |  |  |  | 
| pillow | source | (unstable) | 7.0.0-1 |  |  | 948224 | 
Notes
[buster] - pillow <not-affected> (Vulnerability introduced later)
[stretch] - pillow <not-affected> (Vulnerable code not present)
[jessie] - pillow <not-affected> (The vulnerable code was introduced later)
Introduced by: https://github.com/python-pillow/Pillow/commit/f0436a4ddc954541fa10a531e2d9ea0c5ae2065d (5.3.0)
and https://github.com/python-pillow/Pillow/commit/e91b851fdc1c914419543f485bdbaa010790719f (6.0.0)
Fixed by: https://github.com/python-pillow/Pillow/commit/4e2def2539ec13e53a82e06c4b3daf00454100c4 (6.2.2)