CVE-2018-5711

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.
Severity
MEDIUM
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Atk. Vector
LOCAL
Atk. Complexity
LOW
Priv. Required
NONE
Base Score
CVSS 3.x
EPSS Score
Percentile: 62%
VendorProductVersion
phpphp
𝑥
≤ 5.6.32
phpphp
7.0.0 ≤
𝑥
≤ 7.0.26
phpphp
7.1.0 <
𝑥
≤ 7.1.12
phpphp
7.2.0
debiandebian_linux
7.0
debiandebian_linux
8.0
canonicalubuntu_linux
14.04
canonicalubuntu_linux
16.04
canonicalubuntu_linux
18.04
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libgd2
bullseye
2.3.0-2
fixed
bookworm
2.3.3-9
fixed
sid
2.3.3-12
fixed
trixie
2.3.3-12
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libgd2
hirsute
Fixed 2.2.5-4ubuntu1
released
groovy
Fixed 2.2.5-4ubuntu1
released
focal
Fixed 2.2.5-4ubuntu1
released
eoan
Fixed 2.2.5-4ubuntu1
released
disco
Fixed 2.2.5-4ubuntu1
released
cosmic
Fixed 2.2.5-4ubuntu1
released
bionic
Fixed 2.2.5-4ubuntu0.2
released
artful
ignored
xenial
Fixed 2.1.1-4ubuntu0.16.04.10
released
trusty
Fixed 2.1.0-3ubuntu0.10
released
php5
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
artful
dne
xenial
dne
trusty
not-affected
php7.0
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
artful
dne
xenial
not-affected
trusty
dne
php7.1
hirsute
dne
groovy
dne
focal
dne
eoan
dne
disco
dne
cosmic
dne
bionic
dne
artful
not-affected
xenial
dne
trusty
dne