CVE Vulnerabilities

CVE-2018-5711

Incorrect Conversion between Numeric Types

Published: Jan 16, 2018 | Modified: Nov 21, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
4.3 LOW
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Ubuntu
LOW
root.io logo minimus.io logo echo.ai logo

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

When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.

Affected Software

NameVendorStart VersionEnd Version
PhpPhp*5.6.32 (including)
PhpPhp7.0.0 (including)7.0.26 (including)
PhpPhp7.1.0 (excluding)7.1.12 (including)
PhpPhp7.2.0 (including)7.2.0 (including)
Red Hat Software Collections for Red Hat Enterprise Linux 6RedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUSRedHatrh-php70-php-0:7.0.27-1.el6*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-php71-php-0:7.1.30-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUSRedHatrh-php71-php-0:7.1.30-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-php70-php-0:7.0.27-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUSRedHatrh-php71-php-0:7.1.30-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSRedHatrh-php71-php-0:7.1.30-1.el7*
Libgd2Ubuntuartful*
Libgd2Ubuntubionic*
Libgd2Ubuntucosmic*
Libgd2Ubuntudevel*
Libgd2Ubuntudisco*
Libgd2Ubuntueoan*
Libgd2Ubuntuesm-infra-legacy/trusty*
Libgd2Ubuntuesm-infra/bionic*
Libgd2Ubuntuesm-infra/focal*
Libgd2Ubuntuesm-infra/xenial*
Libgd2Ubuntufocal*
Libgd2Ubuntugroovy*
Libgd2Ubuntuhirsute*
Libgd2Ubuntuprecise/esm*
Libgd2Ubuntutrusty*
Libgd2Ubuntutrusty/esm*
Libgd2Ubuntuxenial*

Potential Mitigations

References