VDB

ALPINE-CVE-2018-5711

ALPINE-CVE-2018-5711 PUBLISHED CVSS 5.5 MEDIUM

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.

Risk Scores

CVSS v3.0
5.5
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected Products

VendorProductVersions
Alpine:v3.18gd*, 2.2.5-r1, 2.2.5-r0
Alpine:v3.15gd2.0.36, 2.1.0-r1, 2.1.1-r0
Alpine:v3.7gd2.0.36, 2.0.36, 2.0.36
Alpine:v3.17gd2.2.4-r1, 2.0.35-r0, 2.0.35-r1
Alpine:v3.9gd2.2.3-r1, 2.1.0-r0, 2.0.36_rc1-r9
Alpine:v3.5php55.5.6-r1, 5.6.26-r0, 5.6.25-r1
Alpine:v3.11gd0, 2.2.5-r0, 2.2.4-r2
Alpine:v3.8gd2.2.5-r1, 2.0.35-r0, 2.0.35-r1
Alpine:v3.19gd2.0.36_rc1-r9, 2.0.35-r0, 2.0.35-r1
Alpine:v3.10gd2.2.5-r0, 2.0.35-r1, 0
Alpine:v3.23gd2.2.5-r1, 2.0.35-r2, 2.0.36_rc1-r0
Alpine:v3.21gd2.2.5-r1, 0, 2.0.35-r0
Alpine:v3.22gd2.0.36_rc1-r8, 2.2.5-r1, 2.2.5-r0
Alpine:v3.6gd2.2.4-r2, 2.0.36_rc1-r7, 2.2.5-r1
Alpine:v3.20gd2.0.36, 0, 0
Alpine:v3.14gd2.2.3-r1, 2.0.35-r0, 2.0.36_rc1-r6
Alpine:v3.12gd2.0.36_rc1-r4, 2.1.0-r0, 2.1.0-r1
Alpine:v3.16gd2.2.1-r0, 2.0.36_rc1-r5, 2.0.36_rc1-r6
Alpine:v3.13gd2.0.36_rc1-r3, 2.2.5-r1, 2.2.5-r0
Alpine:v3.4php55.3.21-r1, 5.3.21-r2, 5.3.23-r0

Timeline

  • Jan 16, 2018 CVE Published
  • Dec 3, 2025 CVE Updated
  • Apr 30, 2026 Distribution Patch
Open in Interactive Console →
$ Console Community · 100/wk Open console ›