SecurityContext

CVE-2018-5711: GD Graphics Library - Denial of Service

  • Cve: CVE-2018-5711
  • Name: GD Graphics Library - Denial of Service
  • 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.
  • Impact: Attackers can cause denial of service by triggering infinite loops during image processing, leading to application hang or crash.
  • Remediation: Update to GD Graphics Library version 5.6.33, 7.0.27, 7.1.13, or 7.2.1 or later versions.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
  • Epss score: 0.13204
  • Epss percentile: 0.96468
  • Assignee: [email protected]
  • Published at: 2018-01-16T09:29:00Z
  • Age in days: 3234
  • Modified at: 2026-06-17T02:00:38Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 11
  • Products total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-5711
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirements

Cwe

IdName
CWE-681Incorrect Conversion between Numeric Types

Hackerone

  • Reports: 4
  • Rank: 2839

Public exploits

UrlSourceAdded date
https://github.com/huzhenghui/Test-7-2-1-PHP-CVE-2018-5711poc-in-github2018-02-01
https://github.com/huzhenghui/Test-7-2-0-PHP-CVE-2018-5711poc-in-github2018-02-01

References

Same in every row:

  • Source: nvd
UrlTags
https://bugs.php.net/bug.php?id=75571Patch, Vendor Advisory
http://php.net/ChangeLog-5.phpRelease Notes, Vendor Advisory
http://php.net/ChangeLog-7.phpRelease Notes, Vendor Advisory
https://access.redhat.com/errata/RHSA-2018:1296Third Party Advisory
https://lists.debian.org/debian-lts-announce/2018/01/msg00022.htmlThird Party Advisory
https://lists.debian.org/debian-lts-announce/2019/01/msg00028.htmlThird Party Advisory
https://security.gentoo.org/glsa/201903-18Third Party Advisory
https://usn.ubuntu.com/3755-1/Third Party Advisory
https://access.redhat.com/errata/RHSA-2019:2519
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
php:php= 7.2.0; > 7.1.0, <= 7.1.12; >= 7.0.0, <= 7.0.26; <= 5.6.32/v1/products/php/php
debian:debian_linux= 8.0, = 7.0/v1/products/debian/debian_linux
canonical:ubuntu_linux= 18.04, = 16.04, = 14.04/v1/products/canonical/ubuntu_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2018-02-01
  • Hackerone reports: 4
  • Exposed hosts: 21216412
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since