| Name | CVE-2009-5022 | 
| Description | Heap-based buffer overflow in tif_ojpeg.c in the OJPEG decoder in LibTIFF before 3.9.5 allows remote attackers to execute arbitrary code via a crafted TIFF 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) | 
| References | DSA-2256-1 | 
| Debian Bugs | 624287 | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| tiff (PTS) | bullseye | 4.2.0-1+deb11u5 | fixed | 
|  | bullseye (security) | 4.2.0-1+deb11u7 | fixed | 
|  | bookworm | 4.5.0-6+deb12u2 | fixed | 
|  | bookworm (security) | 4.5.0-6+deb12u3 | fixed | 
|  | trixie | 4.7.0-3 | fixed | 
|  | trixie (security) | 4.7.0-3+deb13u1 | fixed | 
|  | forky, sid | 4.7.1-1 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| tiff | source | lenny | (not affected) |  |  |  | 
| tiff | source | squeeze | 3.9.4-5+squeeze2 |  | DSA-2256-1 |  | 
| tiff | source | (unstable) | 3.9.5-1 |  |  | 624287 | 
| tiff3 | source | (unstable) | (not affected) |  |  |  | 
Notes
- tiff3 <not-affected> (fixed before initial upload)
[lenny] - tiff <not-affected> (3.9+ only)
http://bugzilla.maptools.org/show_bug.cgi?id=1999