CVE-2018-5711
publishedgd: Infinite loop in gdImageCreateFromGifCtx() in gd_gif_in.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | gd | Fixed | 2.2.5-r2 | Package fix record |
| Debian | jessie | libgd2 | Advisory build | 2.1.0-5+deb8u12 | DLA-1651-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpsrc | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Alpine Linux | v3.10 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.11 | gd | Fixed | 2.2.5-r2 | Package fix record |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.12 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.13 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.14 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.15 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.16 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.17 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.18 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.19 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.20 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.21 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.22 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.23 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.24 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.4 | php5 | Fixed | 5.6.33-r0 | Package fix record |
| Alpine Linux | v3.5 | php5 | Fixed | 5.6.33-r0 | Package fix record |
| Alpine Linux | v3.5 | php7 | Fixed | 7.0.27-r0 | Package fix record |
| Alpine Linux | v3.6 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.6 | php5 | Fixed | 5.6.33-r0 | Package fix record |
| Alpine Linux | v3.6 | php7 | Fixed | 7.1.13-r0 | Package fix record |
| Alpine Linux | v3.7 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.7 | php5 | Fixed | 5.6.33-r0 | Package fix record |
| Alpine Linux | v3.7 | php7 | Fixed | 7.1.13-r0 | Package fix record |
| Alpine Linux | v3.8 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Alpine Linux | v3.8 | php5 | Fixed | 5.6.33-r0 | Package fix record |
| Alpine Linux | v3.9 | gd | Fixed | 2.2.5-r2 | Package fix record |
| Debian | jessie | php5 | Advisory build | 5.6.33+dfsg-0+deb8u1 | DSA-4081-1 |
| Debian | stretch | php7.0 | Advisory build | 7.0.27-0+deb9u1 | DSA-4080-1 |
| Debian | wheezy | libgd2 | Advisory build | 2.0.36~rc1~dfsg-6.1+deb7u11 | DLA-1248-1 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-phpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-bcmathx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-clix86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-commonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbax86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-dbgx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-debuginfox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-develx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-embeddedx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-enchantx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-fpmx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gdx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-gmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-imapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-intlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-jsonx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-ldapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mbstringx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-mysqlndx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-odbcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-opcachex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pdox86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pgsqlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-processx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-pspellx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-recodex86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-snmpx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-soapx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-tidyx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-xmlrpcx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-6 | rh-php70-php-zipx86_64 | Advisory build | 7.0.27-1.el6 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-phpsrc | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-phpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-bcmathx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-clix86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-commonx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-dbax86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-dbgx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-debuginfox86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-develx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-embeddedx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-enchantx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-fpmx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-gdx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-gmpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-intlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-jsonx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-ldapx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-mbstringx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-mysqlndx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-odbcx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-opcachex86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pdox86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pgsqlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-processx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-pspellx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-recodex86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-snmpx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-soapx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-xmlx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-xmlrpcx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php70-php-zipx86_64 | Advisory build | 7.0.27-1.el7 | RHSA-2018:1296 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php71-phpaarch64 | Advisory build | 7.1.30-1.el7 | RHSA-2019:2519 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php71-phpppc64le | Advisory build | 7.1.30-1.el7 | RHSA-2019:2519 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php71-phps390x | Advisory build | 7.1.30-1.el7 | RHSA-2019:2519 |
| Red Hat Enterprise Linux | RHEL-7 | rh-php71-phpsrc | Advisory build | 7.1.30-1.el7 | RHSA-2019:2519 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.33, 7.0.x before 7.0.27, 7.1.x before 7.1.13, and 7.2.x before 7.2.1, has an integer signedness error that leads to an infinite loop via a crafted GIF file, as demonstrated by a call to the imagecreatefromgif or imagecreatefromstring PHP function. This is related to GetCode_ and gdImageCreateFromGifCtx.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
11- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- RHSA-2018:1296 https://access.redhat.com/errata/RHSA-2018:1296
- RHSA-2019:2519 https://access.redhat.com/errata/RHSA-2019:2519
- https://bugs.php.net/bug.php?id=75571
- [debian-lts-announce] 20180119 [SECURITY] [DLA 1248-1] libgd2 security update https://lists.debian.org/debian-lts-announce/2018/01/msg00022.html
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html
- FEDORA-2020-e795f92d79 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
- GLSA-201903-18 https://security.gentoo.org/glsa/201903-18
- USN-3755-1 https://usn.ubuntu.com/3755-1/
- https://www.oracle.com/security-alerts/cpuapr2020.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6d1e5cf9c9c3015d33641fb7e57b0b37f8c01d762df775554f222bb906723531
- Ingested
- 23 Sep 2026, 07:44:52 UTC
- Source record
- Official CVE record