CVE-2018-5711
Reported by mitre · Published January 16, 2018
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php5 | Alpine | 5.6.33-r0 |
| gd | Arch Linux | 2.2.5-2 |
| php7 | Alpine | 7.1.13-r0, 7.0.27-r0 |
| libgd2 | Ubuntu:14.04:LTS | 2.1.0-3ubuntu0.10 |
| php | php | 7.1.12, 7.0.26, 5.6.32 |
| libgd2 | Ubuntu:18.04:LTS | 2.2.5-4ubuntu0.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | php5 | 0 |
| arch | gd | 0 |
| alpine | php7 | 0, 0 |
| n/a | n/a | * |
| alpine | gd | 0 |
Timeline
- Jan 16, 2018 CVE Published
- Nov 12, 2019 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 6, 2026 Security Advisory (5 in total, the first dated here)
- Sep 19, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-5711
vulnetix vdb fixes CVE-2018-5711
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-5711/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- USN-3755-1 vendor-advisoryx_refsource_UBUNTU
- RHSA-2018:1296 vendor-advisoryx_refsource_REDHAT
- x_refsource_CONFIRM
- [debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- [debian-lts-announce] 20180119 [SECURITY] [DLA 1248-1] libgd2 security update mailing-listx_refsource_MLIST
- GLSA-201903-18 vendor-advisoryx_refsource_GENTOO
- RHSA-2019:2519 vendor-advisoryx_refsource_REDHAT
- FEDORA-2020-e795f92d79 vendor-advisoryx_refsource_FEDORA
- x_refsource_MISC