{"id":"CVE-2019-6977","details":"gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1, has a heap-based buffer overflow. This can be exploited by an attacker who is able to trigger imagecolormatch calls with crafted image data.","modified":"2026-04-15T23:59:59.150028243Z","published":"2019-01-27T02:29:00.340Z","related":["ALSA-2020:4659","SUSE-SU-2019:0333-1","SUSE-SU-2019:0449-1","SUSE-SU-2019:0747-1","SUSE-SU-2019:0771-1","SUSE-SU-2019:13961-1","openSUSE-SU-2019:1148-1","openSUSE-SU-2024:10777-1","openSUSE-SU-2024:11852-1"],"references":[{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html"},{"type":"WEB","url":"http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/46677/"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-5.php"},{"type":"ADVISORY","url":"http://php.net/ChangeLog-7.php"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/106731"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2519"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3299"},{"type":"ADVISORY","url":"https://bugs.php.net/bug.php?id=77270"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201903-18"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190315-0003/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3900-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4384"},{"type":"REPORT","url":"https://bugs.php.net/bug.php?id=77270"},{"type":"FIX","url":"https://security.netapp.com/advisory/ntap-20190315-0003/"},{"type":"ARTICLE","url":"https://bugs.php.net/bug.php?id=77270"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html"},{"type":"EVIDENCE","url":"https://bugs.php.net/bug.php?id=77270"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/php/php-src","events":[{"introduced":"0"},{"fixed":"4b8f72da5dfb201af4e82dee960261d8657e414f"},{"introduced":"60fffd296abce5fc071f3c173c25a2696cf683c6"},{"fixed":"b3ad2be890e86c69cdc661739c74b677b46a53cb"},{"introduced":"8148cbb78841c8ec0759c0836e7f35dec799d300"},{"fixed":"643a161a24e662fd2afa9bf3591b105f4881e93e"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-6977.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}