CVE-2018-5711 json
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 befor…
published 8y ago modified 4mo ago also EUVD-2018-17480
- cvss
- 5.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 13.2%
- EPSS 13.2% chance of exploitation in 30 days, percentile 96%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- libgd2 Debian 14, Debian 13, Debian 12 2.2.5-4.1
debian advisories DEBIAN-CVE-2018-5711
- libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.10
- libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.10
- libgd2 Ubuntu 18.04 LTS 2.2.5-4ubuntu0.2
ubuntu advisories UBUNTU-CVE-2018-5711
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-php71-php RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-dbg RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-fpm RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-gmp RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-pdo RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
red hat advisories RHSA-2019:2519RHSA-2018:1296
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLES 11 SP3-TERADATA +3 more 5.3.17-112.20.1
- php7 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 7.0.7-50.26.1
- gd SLES for SAP 12 SP3, SLES for SAP 12 SP2, SLES for Raspberry Pi 12 SP2 +8 more 2.1.0-24.6.1
- gd SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.0.36.RC1-52.33.5.1
- php5 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 5.5.14-109.17.1
suse advisories SUSE-SU-2018:0806-1SUSE-SU-2018:0308-1SUSE-SU-2018:0260-1SUSE-SU-2018:0235-1SUSE-SU-2018:0216-1
- gd openSUSE Tumbleweed 2.3.3-1.1
opensuse advisories openSUSE-SU-2024:10777-1
- gd Alpine 3.24, Alpine 3.23, Alpine 3.22 +16 more 2.2.5-r2
- php5 Alpine 3.8, Alpine 3.7, Alpine 3.6 +2 more 5.6.33-r0
- php7 Alpine 3.5 7.0.27-r0
- php7 Alpine 3.7, Alpine 3.6 7.1.13-r0
alpine advisories ALPINE-CVE-2018-5711
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gd Arch Linux 2.2.5-2
arch linux advisories AVG-865
- bugs.php.net/bug.php?id=75571 advisory
Is CVE-2018-5711 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-5711 updated cvss 4.3
gd: Infinite loop in gdImageCreateFromGifCtx() in gd_gif_in.c
-
Red Hat Enterprise Linux 5 php, php53affected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 gd, php, php-gd, php-cli, php-dba, php-fpm, +22 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 gd, php, php-gd, php-cli, php-dba, php-fpm, +20 moreaffected: no fix available, no fix planned “Will not fix”
-
Red Hat Enterprise Linux 8 gdaffected: no fix available “Fix deferred”
-
Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 morefixed: vendor fix RHSA-2018:1296
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 morefixed: vendor fix RHSA-2019:2519
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 morefixed: vendor fix RHSA-2018:1296
show 1 moreshow fewer
-
Red Hat Enterprise Linux 5 libwmf Red Hat Enterprise Linux 6 libwmf, libwmf-lite Red Hat Enterprise Linux 7 libwmf, libwmf-lite Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
13.20% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
- Weakness
- Technology feeds
References
-
bugs.php.net
/bug.php?id=75571
patch, vendor-advisory
-
usn.ubuntu.com
/3755-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2018:1296
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/201903-18
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:2519
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
vendor-advisory
-
php.net
/ChangeLog-5.php
release-notes, vendor-advisory
-
php.net
/ChangeLog-7.php
release-notes, vendor-advisory
-
lists.debian.org
/debian-lts-announce/2019/01/msg00028.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/01/msg00022.html
mailing-list, third-party-advisory
- oracle.com /security-alerts/cpuapr2020.html
Sources
- CVE List CVE-2018-5711
- NVD CVE-2018-5711
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.