CVE-2018-5711: Canonical Ubuntu Linux
Medium severity, CVSS 5.5. EPSS: 13.2% chance of exploitation in the next 30 days.
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.
Affected products
- Canonical Ubuntu Linux: version 14.04 only; version 16.04 only; version 18.04 only
- Debian Debian Linux: version 7.0 only; version 8.0 only
- PHP PHP: up to and including 5.6.32; from 7.0.0, up to and including 7.0.26; after 7.1.0, up to and including 7.1.12; version 7.2.0 only
Published 2018-01-16. Last modified 2026-06-17.