{"id":"CVE-2018-5711","published":"2018-01-16T09:00:00Z","modified":"2024-08-05T05:40:51Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.13204,"percentile":0.96463,"provenance":"source"},"cwes":[],"references":[{"url":"https://bugs.php.net/bug.php?id=75571","tags":["x_refsource_CONFIRM"]},{"url":"https://usn.ubuntu.com/3755-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://access.redhat.com/errata/RHSA-2018:1296","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://php.net/ChangeLog-5.php","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://php.net/ChangeLog-7.php","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2018/01/msg00022.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://security.gentoo.org/glsa/201903-18","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2519","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","tags":["x_refsource_MISC"]}],"priority":{"score":24.3,"factors":[{"name":"EPSS percentile","points":19.29},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2018-02-01","earliestUrl":"https://github.com/huzhenghui/Test-7-2-0-PHP-CVE-2018-5711","repos":[{"name":"huzhenghui/Test-7-2-0-PHP-CVE-2018-5711","url":"https://github.com/huzhenghui/Test-7-2-0-PHP-CVE-2018-5711","stars":2,"created":"2018-02-01"},{"name":"huzhenghui/Test-7-2-1-PHP-CVE-2018-5711","url":"https://github.com/huzhenghui/Test-7-2-1-PHP-CVE-2018-5711","stars":1,"created":"2018-02-01"}]},"first":{"date":"2018-02-01","source":"PoC-in-GitHub","url":"https://github.com/huzhenghui/Test-7-2-0-PHP-CVE-2018-5711"},"provenance":"source"},"summary":{"text":"The flaw is an integer signedness error in gd_gif_in.c, a component of the GD Graphics Library (libgd) as used in PHP, within the GIF decoding path involving GetCode_ and gdImageCreateFromGifCtx. An attacker can supply a crafted GIF file to trigger an infinite loop, as demonstrated through the imagecreatefromgif or imagecreatefromstring PHP functions, so exploitation requires only that a vulnerable PHP application process attacker-supplied GIF input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:47:14Z"},"euvd":{"id":"EUVD-2018-17480","exploited":false,"provenance":"source"}}