Description
The GetCode_ function in gd_gif_in.c in GD 2.1.1 and earlier, as used in PHP before 5.5.21 and 5.6.x before 5.6.5, allows remote attackers to cause a denial of service (buffer over-read and application crash) via a crafted GIF image that is improperly handled by the gdImageCreateFromGif function.
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.1.0-5 | — |
| Debian 13 | libgd2 | 2.1.0-5 | — |
| Debian 12 | libgd2 | 2.1.0-5 | — |
| Debian 7 | libgd2 | 2.0.36~rc1~dfsg-6.1+deb7u1 | DSA-3215-1 |
| Debian 6.0 | libgd2 | 2.0.36~rc1~dfsg-5+deb6u1 | DLA-189-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libgd2 | 2.1.1-4ubuntu0.16.04.1 | USN-2987-1 |
| Ubuntu 14.04 LTS | libgd2 | 2.1.0-3ubuntu0.1 | USN-2987-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | php +24 | 5.4.16-36.ael7b_1 | RHSA-2015:1135 |
| RHEL 6 | php +26 | 5.3.3-46.el6_6 | RHSA-2015:1218 |
| RHEL 2 | php54 +5 | 2.0-1.el6 | RHSA-2015:1066, RHSA-2015:1053 |
| RHEL 2 | php54-php +24 | 5.4.40-1.el6 | RHSA-2015:1066 |
| RHEL 2 | php54-php-pecl-zendopcache | 7.0.4-3.el6 | RHSA-2015:1066 |
| RHEL 2 | php55-php +26 | 5.5.21-2.el6 | RHSA-2015:1053 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | php74 | 7.4.33-1.50.2 | SUSE-SU-2023:0072-1 |
| SLES 12 | gd | 2.1.0-5.1 | SUSE-SU-2015:0866-1 |
| SLES 12 | php5 | 5.5.14-22.1 | SUSE-SU-2015:0868-1 |
| SLES 12 | php74 | 7.4.33-1.50.2 | SUSE-SU-2023:0072-1 |
| SLES 11 SP2 | php53 | 5.3.17-47.1 | SUSE-SU-2016:1638-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 | gd | 2.1.0-5.1 | SUSE-SU-2015:0866-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | php +24 | 5.4.16-36.el7_1 | ELSA-2015-1135 |
| Oracle Linux 7 | php54 +5 | 2.0-1.el7 | ELSA-2015-1066, ELSA-2015-1053 |
| Oracle Linux 7 | php54-php +22 | 5.4.40-1.el7 | ELSA-2015-1066 |
| Oracle Linux 7 | php54-php-imap +1 | 5.4.40-1.el6 | ELSA-2015-1066 |
| Oracle Linux 7 | php54-php-pecl-zendopcache | 7.0.4-3.el7 | ELSA-2015-1066 |
| Oracle Linux 7 | php55-php +26 | 5.5.21-2.0.1.el6 | ELSA-2015-1053 |
Advisories 17
- RHSA-2015:1218 Red Hat Security Advisory: php security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1135 Red Hat Security Advisory: php security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1066 Red Hat Security Advisory: php54 security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2015:1053 Red Hat Security Advisory: php55 security and bug fix update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- USN-2987-1 libgd2 vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DSA-3215-1 libgd2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-189-1 libgd2 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2016:1638-1 Security update for php53 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:0866-1 Security update for gd SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2015:0868-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:0072-1 Security update for php74 SUSE / openSUSE Security Updates · Feb 4, 2026
- ICSA-26-027-02 Festo Didactic SE MES PC CISA ICS & IT advisories · Jan 27, 2026
- FSA-202402 Several Vulnerabilities in MES PC (Windows 10) CERT@VDE · Dec 8, 2025
- WID-SEC-2023-0069 PHP: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 12, 2023
- ELSA-2015-1066 Important: php54 security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
- ELSA-2015-1053 Moderate: php55 security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Feb 4, 2016
- ELSA-2015-1135 Important: php security and bug fix update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Jun 23, 2015
References
- MDVSA-2015:153 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1188639
- 1033703 vdb-entry
- openSUSE-SU-2015:0644 vendor-advisory
- APPLE-SA-2015-09-30-3 vendor-advisory
- https://bitbucket.org/libgd/gd-libgd/commits/47eb44b2e90ca88a08dca9f9a1aa9041e9587f43
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- SSRT102066 vendor-advisory
- http://php.net/ChangeLog-5.php
- DSA-3215 vendor-advisory
- SUSE-SU-2015:0868 vendor-advisory
- https://support.apple.com/HT205267
- GLSA-201607-04 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinapr2015-2511959.html
- USN-2987-1 vendor-advisory
- 73306 vdb-entry
- RHSA-2015:1135 vendor-advisory
- https://bugs.php.net/bug.php?id=68601
- RHSA-2015:1053 vendor-advisory
- http://advisories.mageia.org/MGASA-2015-0040.html
- GLSA-201606-10 vendor-advisory
- RHSA-2015:1066 vendor-advisory
- RHSA-2015:1218 vendor-advisory