{"id":"CVE-2018-5711","details":"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.","modified":"2026-04-16T06:17:58.457806141Z","published":"2018-01-16T09:29:00.577Z","related":["SUSE-SU-2018:0216-1","SUSE-SU-2018:0235-1","SUSE-SU-2018:0260-1","SUSE-SU-2018:0308-1","SUSE-SU-2018:0806-1","openSUSE-SU-2024:10777-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuapr2020.html"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-5.php"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-7.php"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2018:1296"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2519"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/01/msg00022.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201903-18"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3755-1/"},{"type":"FIX","url":"https://bugs.php.net/bug.php?id=75571"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"last_affected":"6f21492505dd554667f70884b46802f2fb81c210"},{"introduced":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"last_affected":"532aa2d2aeb4a1f590f30d4063445473182f9a38"},{"introduced":"0"},{"last_affected":"2d16947f209c40fa4cccc56833aa0807790d52b8"},{"introduced":"0"},{"last_affected":"8148cbb78841c8ec0759c0836e7f35dec799d300"},{"introduced":"0"},{"last_affected":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"introduced":"0"},{"last_affected":"5dc92c2117cafc61daaaaa240fd46c3ac33872a4"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"5.6.32"},{"introduced":"7.0.0"},{"last_affected":"7.0.26"},{"introduced":"0"},{"last_affected":"7.1.12"},{"introduced":"0"},{"last_affected":"7.2.0"},{"introduced":"0"},{"last_affected":"7.0"},{"introduced":"0"},{"last_affected":"8.0"}]}}],"versions":["POST_64BIT_BRANCH_MERGE","POST_AST_MERGE","POST_PHP7_NSAPI_REMOVAL","POST_PHP7_REMOVALS","POST_PHPNG_MERGE","PRE_64BIT_BRANCH_MERGE","PRE_AST_MERGE","PRE_PHP7_EREG_MYSQL_REMOVALS","PRE_PHP7_NSAPI_REMOVAL","PRE_PHP7_REMOVALS","l","php-5.6.32","php-7.0.0","php-7.0.26","php-7.0.26RC1","php-7.1.12","php-7.1.12RC1","php-7.2.0","php-8.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5711.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"14.04"}]},{"events":[{"introduced":"0"},{"last_affected":"16.04"}]},{"events":[{"introduced":"0"},{"last_affected":"18.04"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}