CVE-2018-5711: Medium severity PHP PHP vulnerability
A flaw was found libgd in PHP that affects all versions. An infinite loop in GD GIF core parsing function that results in a Denial of Service and exhausted the server resources.
References: http://php.net/ChangeLog-5.php#5.6.33 https://bugs.php.net/bug.php?id=75571
Patch: https://bugs.php.net/patch-display.php?bug=75571&patch=fix-75571&revision=1511981663
Other sources
Fixed bug (Potential infinite loop in gdImageCreateFromGifCtx). (CVE-2018-5711)
— PHP
gdgifin.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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rh-php70-phpto a version that resolves this vulnerability.Fixed in 0:7.0.27-1.el6 - Upgrade
Upgrade
redhat/rh-php70-phpto a version that resolves this vulnerability.Fixed in 0:7.0.27-1.el7 - Upgrade
Upgrade
redhat/rh-php71-phpto a version that resolves this vulnerability.Fixed in 0:7.1.30-1.el7 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 5.6.33 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.0.27 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.1.13 - Upgrade
Upgrade
redhat/phpto a version that resolves this vulnerability.Fixed in 7.2.1 - Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 7.0.27 - Upgrade
Upgrade
debian/libgd2to a version that resolves this vulnerability.Fixed in 2.3.0-2Fixed in 2.3.0-2+deb11u1Fixed in 2.3.3-9Fixed in 2.3.3-13 - Upgrade
Upgrade
PHP (libgd / GD Graphics Library)to a version that resolves this vulnerability.Fixed in 5.6.33Patch fix-75571 - Upgrade
Upgrade
PHP (libgd / GD Graphics Library)to a version that resolves this vulnerability.Fixed in 7.0.27Patch fix-75571 - Upgrade
Upgrade
PHP (libgd / GD Graphics Library)to a version that resolves this vulnerability.Fixed in 7.1.13Patch fix-75571 - Upgrade
Upgrade
PHP (libgd / GD Graphics Library)to a version that resolves this vulnerability.Fixed in 7.2.1Patch fix-75571
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2018-5711?
CVE-2018-5711 is a fixed bug in the GD Graphics Library (libgd) that can cause an infinite loop via a crafted GIF file.
Which software versions are affected by CVE-2018-5711?
CVE-2018-5711 affects PHP versions 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.
What is the severity of CVE-2018-5711?
The severity of CVE-2018-5711 is medium with a CVSS score of 5.5.
How can I fix CVE-2018-5711?
To fix CVE-2018-5711, update your PHP installation to version 5.6.33, 7.0.27, 7.1.13, or 7.2.1.
Where can I find more information about CVE-2018-5711?
You can find more information about CVE-2018-5711 on the PHP official website and the PHP bug tracker.