Vulnerability in PHP
CVE-2018-5711
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.132, 96.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 7.2.0
- Canonical Ubuntu Linux — versions 14.04, 16.04, 18.04
- Debian Linux — versions 7.0, 8.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- huzhenghui/Test-7-2-0-PHP-CVE-2018-5711 (2 stars, last pushed 2018-02-01)
- huzhenghui/Test-7-2-1-PHP-CVE-2018-5711 (1 star, last pushed 2018-02-01)
Also mentioned in 10 other repositories (0xT11/CVE-POC, arindam0310018/04-Apr-2022-DevOps__Scan-Images-In-ACR-Using-Trivy, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugs.php.net/bug.php (Patch, Vendor Advisory)
- USN-3755-1 (vendor-advisory, Third Party Advisory)
- RHSA-2018:1296 (vendor-advisory, Third Party Advisory)
- php.net/ChangeLog-5.php (Release Notes, Vendor Advisory)
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update (mailing-list, Third Party Advisory)
- php.net/ChangeLog-7.php (Release Notes, Vendor Advisory)
- [debian-lts-announce] 20180119 [SECURITY] [DLA 1248-1] libgd2 security update (mailing-list, Third Party Advisory)
- GLSA-201903-18 (vendor-advisory, Third Party Advisory)
- RHSA-2019:2519 (vendor-advisory)
- FEDORA-2020-e795f92d79 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.