Vulnerability database / CVE-2018-5711
CVE-2018-5711
MEDIUM 5.5 CVSS 3.0 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.
Published 16 Jan 2018
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-681 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.0
MEDIUM 5.5
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 4.3
AV:N/AC:M/Au:N/C:N/I:N/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
<= 5.6.32
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
>= 7.0.0, <= 7.0.26
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
> 7.1.0, <= 7.1.12
NVD
php
phpcpe:2.3:a:php:php:7.2.0:*:*:*:*:*:*:*
= 7.2.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
= 14.04
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
= 16.04
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
= 18.04
References
History
25 Nov 2026 20:20 UTC · NVD: first stored (published 16 Jan 2018)