{"id":"CVE-2019-6977","state":"PUBLISHED","title":"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.","description":"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.","publishedAt":"2019-01-27T02:00:00.000Z","updatedAt":"2024-08-04T20:38:32.847Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["http://www.securityfocus.com/bid/106731","https://security.netapp.com/advisory/ntap-20190315-0003/","http://php.net/ChangeLog-5.php","http://php.net/ChangeLog-7.php","https://usn.ubuntu.com/3900-1/","https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html","https://bugs.php.net/bug.php?id=77270","https://www.debian.org/security/2019/dsa-4384","https://security.gentoo.org/glsa/201903-18","http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html","http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html","https://www.exploit-db.com/exploits/46677/","http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html","https://access.redhat.com/errata/RHSA-2019:2519","https://access.redhat.com/errata/RHSA-2019:3299","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:46:06.737Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/6xxx/CVE-2019-6977.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-6977","state":"PUBLISHED","datePublished":"2019-01-27T02:00:00.000Z","dateUpdated":"2024-08-04T20:38:32.847Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2019-01-26T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"http://www.securityfocus.com/bid/106731","name":"106731","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://security.netapp.com/advisory/ntap-20190315-0003/","tags":["x_refsource_CONFIRM"]},{"url":"http://php.net/ChangeLog-5.php","tags":["x_refsource_MISC"]},{"url":"http://php.net/ChangeLog-7.php","tags":["x_refsource_MISC"]},{"url":"https://usn.ubuntu.com/3900-1/","name":"USN-3900-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html","name":"[debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://bugs.php.net/bug.php?id=77270","tags":["x_refsource_MISC"]},{"url":"https://www.debian.org/security/2019/dsa-4384","name":"DSA-4384","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.gentoo.org/glsa/201903-18","name":"GLSA-201903-18","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html","name":"openSUSE-SU-2019:1148","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html","name":"openSUSE-SU-2019:1140","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.exploit-db.com/exploits/46677/","name":"46677","tags":["exploit","x_refsource_EXPLOIT-DB"]},{"url":"http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2519","name":"RHSA-2019:2519","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3299","name":"RHSA-2019:3299","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/","name":"FEDORA-2019-ab7d22a466","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/","name":"FEDORA-2019-d7f8995451","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/","name":"FEDORA-2019-7a06c0e6b4","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/","name":"FEDORA-2020-e795f92d79","tags":["vendor-advisory","x_refsource_FEDORA"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2020-03-31T01:06:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2019-01-26T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-6977","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"106731","refsource":"BID","url":"http://www.securityfocus.com/bid/106731"},{"name":"https://security.netapp.com/advisory/ntap-20190315-0003/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20190315-0003/"},{"name":"http://php.net/ChangeLog-5.php","refsource":"MISC","url":"http://php.net/ChangeLog-5.php"},{"name":"http://php.net/ChangeLog-7.php","refsource":"MISC","url":"http://php.net/ChangeLog-7.php"},{"name":"USN-3900-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3900-1/"},{"name":"[debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html"},{"name":"https://bugs.php.net/bug.php?id=77270","refsource":"MISC","url":"https://bugs.php.net/bug.php?id=77270"},{"name":"DSA-4384","refsource":"DEBIAN","url":"https://www.debian.org/security/2019/dsa-4384"},{"name":"GLSA-201903-18","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201903-18"},{"name":"openSUSE-SU-2019:1148","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html"},{"name":"openSUSE-SU-2019:1140","refsource":"SUSE","url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html"},{"name":"46677","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/46677/"},{"name":"http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html","refsource":"MISC","url":"http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html"},{"name":"RHSA-2019:2519","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:2519"},{"name":"RHSA-2019:3299","refsource":"REDHAT","url":"https://access.redhat.com/errata/RHSA-2019:3299"},{"name":"FEDORA-2019-ab7d22a466","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/"},{"name":"FEDORA-2019-d7f8995451","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/"},{"name":"FEDORA-2019-7a06c0e6b4","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/"},{"name":"FEDORA-2020-e795f92d79","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.securityfocus.com/bid/106731","name":"106731","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20190315-0003/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://php.net/ChangeLog-5.php","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://php.net/ChangeLog-7.php","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://usn.ubuntu.com/3900-1/","name":"USN-3900-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html","name":"[debian-lts-announce] 20190130 [SECURITY] [DLA 1651-1] libgd2 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://bugs.php.net/bug.php?id=77270","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.debian.org/security/2019/dsa-4384","name":"DSA-4384","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://security.gentoo.org/glsa/201903-18","name":"GLSA-201903-18","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html","name":"openSUSE-SU-2019:1148","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html","name":"openSUSE-SU-2019:1140","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"https://www.exploit-db.com/exploits/46677/","name":"46677","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred"]},{"url":"http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2519","name":"RHSA-2019:2519","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://access.redhat.com/errata/RHSA-2019:3299","name":"RHSA-2019:3299","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/","name":"FEDORA-2019-ab7d22a466","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/","name":"FEDORA-2019-d7f8995451","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/","name":"FEDORA-2019-7a06c0e6b4","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/","name":"FEDORA-2020-e795f92d79","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T20:38:32.847Z"}}]}}}