Description
gdImageClone in gd.c in libgd 2.1.0-rc2 through 2.2.5 has a NULL pointer dereference allowing attackers to crash an application via a specific function call sequence. Only affects PHP when linked with an external libgd (not bundled).
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 | — |
| Debian 10 | libgd2 | 2.2.5-5.2+deb10u1 | DLA-3781-1 |
| Debian 8 | libgd2 | 2.1.0-5+deb8u14 | DLA-2106-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | doxygen | No fix yet | — |
| Ubuntu 26.04 LTS | doxygen | No fix yet | — |
| Ubuntu 25.10 | doxygen | No fix yet | — |
| Ubuntu 24.04 LTS | doxygen | No fix yet | — |
| Ubuntu 22.04 LTS | doxygen | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | doxygen | No fix yet | — |
| Ubuntu 18.04 LTS | libgd2 | 2.2.5-4ubuntu0.4 | USN-4316-1 |
| Ubuntu 16.04 LTS | libgd2 | 2.1.1-4ubuntu0.16.04.12 | USN-4316-1 |
| Ubuntu Pro 14.04 LTS | libgd2 | 2.1.0-3ubuntu0.11+esm1 | USN-4316-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | gd +1 | 2.2.5-7.el8 | RHSA-2020:4659 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | gd +1 | 2.2.5-7.el8 | ALSA-2020:4659 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | gd | 2.2.5-7.el8 | RLSA-2020:4659 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP1 | gd | 2.2.5-4.14.1 | SUSE-SU-2020:0594-2, SUSE-SU-2020:0594-1 |
| SLES 12 SP5 | gd | 2.1.0-24.17.1 | SUSE-SU-2020:0623-1 |
| SLES 12 SP4 | gd | 2.1.0-24.17.1 | SUSE-SU-2020:0623-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | gd | 2.1.0-24.17.1 | SUSE-SU-2020:0623-1 |
| SLES for SAP 12 SP4 | gd | 2.1.0-24.17.1 | SUSE-SU-2020:0623-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | gd | 2.3.3-1.1 | openSUSE-SU-2024:10777-1 |
| openSUSE Leap 15.1 | gd | 2.2.5-lp151.6.6.1 | openSUSE-SU-2020:0332-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 12 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-r3 | — |
| Alpine v3.10 | gd | 2.2.5-r3 | — |
| Alpine v3.9 | gd | 2.2.5-r3 | — |
| Alpine v3.8 | gd | 2.2.5-r3 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | gd +1 | 2.2.5-7.el8 | ELSA-2020-4659 |
Advisories 13
- ALSA-2020:4659 Moderate: gd security update AlmaLinux Security Advisories · Oct 29, 2026
- RHSA-2020:4659 Red Hat Security Advisory: gd security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-4316-2 libgd2 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-4316-1 libgd2 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-3781-1 libgd2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2106-1 libgd2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- RLSA-2020:4659 Moderate: gd security update Rocky Linux Security Advisories · Feb 5, 2026
- SUSE-SU-2020:0594-1 Security update for gd SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0623-1 Security update for gd SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0594-2 Security update for gd SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0332-1 Security update for gd SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:10777-1 gd-2.3.3-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2020-4659 Moderate: gd security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 10, 2020
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1599032
- https://github.com/libgd/libgd/pull/580
- https://github.com/libgd/libgd/commit/a93eac0e843148dc2d631c3ba80af17e9c8c860f
- [debian-lts-announce] 20200218 [SECURITY] [DLA 2106-1] libgd2 security update mailing-list
- openSUSE-SU-2020:0332 vendor-advisory
- FEDORA-2020-e795f92d79 vendor-advisory
- USN-4316-2 vendor-advisory
- USN-4316-1 vendor-advisory
- [debian-lts-announce] 20240406 [SECURITY] [DLA 3781-1] libgd2 security update mailing-list