VULNERABILITY INTELLIGENCE
CVE-2018-5711
CVSS score5.5 MEDIUM
EPSS probability13.20%
CISA KEVNot currently listed
Published2018-01-16
Last modified2026-06-17
CVSS vectorCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
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.
Weakness classification
- CWE-681: Incorrect Conversion between Numeric Types
- CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')
Primary references
- cve@mitre.org — Release Notes, Vendor Advisory
- cve@mitre.org — Release Notes, Vendor Advisory
- cve@mitre.org — Third Party Advisory
- cve@mitre.org
- cve@mitre.org — Patch, Vendor Advisory
- cve@mitre.org — Third Party Advisory
- cve@mitre.org — Third Party Advisory
- cve@mitre.org
- cve@mitre.org — Third Party Advisory
- cve@mitre.org — Third Party Advisory
- cve@mitre.org
- af854a3a-2127-422b-91ae-364da2661108 — Release Notes, Vendor Advisory