Description
In the GD Graphics Library (aka LibGD) through 2.2.5, there is a heap-based buffer over-read in tiffWriter in gd_tiff.c. NOTE: the vendor says "In my opinion this issue should not have a CVE, since the GD and GD2 formats are documented to be 'obsolete, and should only be used for development and testing purposes.'
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgd2 | 2.3.0-1 | — |
| Debian 13 | libgd2 | 2.3.0-1 | — |
| Debian 12 | libgd2 | 2.3.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libgd2 | 2.2.5-5.2ubuntu2.1 | USN-5068-1 |
| Ubuntu 18.04 LTS | libgd2 | 2.2.5-4ubuntu0.5 | USN-5068-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | libgd2 | 2.1.1-4ubuntu0.16.04.12+esm1 | USN-5068-1 |
| Ubuntu Pro 14.04 LTS | libgd2 | 2.1.0-3ubuntu0.11+esm2 | USN-5068-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gd | 2.3.0-r0 | — |
| Alpine v3.23 | gd | 2.3.0-r0 | — |
| Alpine v3.22 | gd | 2.3.0-r0 | — |
| Alpine v3.21 | gd | 2.3.0-r0 | — |
| Alpine v3.20 | gd | 2.3.0-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gd | 2.3.0-r0 | — |
| Alpine v3.18 | gd | 2.3.0-r0 | — |
| Alpine v3.17 | gd | 2.3.0-r0 | — |
| Alpine v3.16 | gd | 2.3.0-r0 | — |
| Alpine v3.15 | gd | 2.3.0-r0 | — |
| Alpine v3.14 | gd | 2.3.0-r0 | — |
| Alpine v3.13 | gd | 2.3.0-r0 | — |
| Alpine v3.12 | gd | 2.3.0-r0 | — |
| Alpine v3.11 | gd | 2.2.5-r4 | — |
Advisories 1
- USN-5068-1 libgd2 vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026