Back
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…
Medium5.5EPSS 13.2%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.5 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 13.2% · top 3.6% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Weakness
Affected products
n/a
- affected n/a
References (11)
- https://bugs.php.net/bug.php?id=75571 (opens in a new tab)x_refsource_CONFIRMx_transferred
- USN-3755-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2018:1296 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://php.net/ChangeLog-5.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://php.net/ChangeLog-7.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- [debian-lts-announce] 20180119 [SECURITY] [DLA 1248-1] libgd2 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- GLSA-201903-18 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- RHSA-2019:2519 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- FEDORA-2020-e795f92d79 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://www.oracle.com/security-alerts/cpuapr2020.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-5711)Record last updated .