CVE-2018-5711

Public on 2018-01-16
Modified on 2024-02-02
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.
Severity
Medium severity
Medium
CVSS v3 Base Score
4.3
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 1 php No Fix Planned
Amazon Linux 2 - Core php Pending Fix
Amazon Linux 2 - Php8.2 Extra php Not Affected
Amazon Linux 1 php56 2018-02-07 ALAS-2018-946 Fixed
Amazon Linux 1 php70 2018-02-07 ALAS-2018-946 Fixed
Amazon Linux 1 php71 2018-02-07 ALAS-2018-946 Fixed
Amazon Linux 2023 php8.2 Not Affected

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 4.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
NVD CVSSv3 5.5 CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD CVSSv2 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P