CVE-2018-5711

critical
Published — · Modified —
CVSS v3
CVSS v2
VIR risk
9.5

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2018-5711

vendor Authored 2026-05-27

Vendor advisory: suse — https://www.suse.com/security/cve/CVE-2018-5711.html

OS impact

OSVersionStatusFixed in
arch archfixed2.2.5-2
suse slesaffected
debian debianbookwormfixed2.2.5-4.1
debian debianbullseyefixed2.2.5-4.1
debian debianforkyfixed2.2.5-4.1
debian debiansidfixed2.2.5-4.1
debian debiantrixiefixed2.2.5-4.1

References

Verify integrity in audit chain (admin only). AS-IS.