Search for vulnerabilities
Vulnerability details: VCID-yrku-ufk1-aaaj
Vulnerability ID VCID-yrku-ufk1-aaaj
Aliases CVE-2019-6977
Summary 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.
Status Published
Exploitability 2.0
Weighted Severity 9.0
Risk 10.0
Affected and Fixed Packages Package Details
Weaknesses (2)
System Score Found at
generic_textual Medium http://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-6977.html
generic_textual Medium http://php.net/ChangeLog-5.php
generic_textual Low http://php.net/ChangeLog-7.php
rhas Moderate https://access.redhat.com/errata/RHSA-2020:4659
cvssv3 6.3 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-6977.json
epss 0.58196 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.58196 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.58196 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.58196 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.71411 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88288 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88288 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88288 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88288 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88288 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.88921 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89489 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89516 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
epss 0.89556 https://api.first.org/data/v1/epss?cve=CVE-2019-6977
rhbs medium https://bugzilla.redhat.com/show_bug.cgi?id=1672207
generic_textual Medium https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6977
generic_textual Low https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6978
cvssv3 6.5 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv2 6.8 https://nvd.nist.gov/vuln/detail/CVE-2019-6977
cvssv3 8.8 https://nvd.nist.gov/vuln/detail/CVE-2019-6977
archlinux Critical https://security.archlinux.org/AVG-865
generic_textual Low https://ubuntu.com/security/notices/USN-3900-1
Reference id Reference type URL
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00025.html
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00031.html
http://packetstormsecurity.com/files/152459/PHP-7.2-imagecolormatch-Out-Of-Band-Heap-Write.html
http://people.canonical.com/~ubuntu-security/cve/2019/CVE-2019-6977.html
http://php.net/ChangeLog-5.php
http://php.net/ChangeLog-7.php
https://access.redhat.com/errata/RHSA-2019:2519
https://access.redhat.com/errata/RHSA-2019:3299
https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-6977.json
https://api.first.org/data/v1/epss?cve=CVE-2019-6977
https://bugs.php.net/bug.php?id=77270
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6977
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6978
https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
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/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/
https://security.gentoo.org/glsa/201903-18
https://security.netapp.com/advisory/ntap-20190315-0003/
https://ubuntu.com/security/notices/USN-3900-1
https://usn.ubuntu.com/3900-1/
https://www.debian.org/security/2019/dsa-4384
https://www.exploit-db.com/exploits/46677/
http://www.securityfocus.com/bid/106731
1672207 https://bugzilla.redhat.com/show_bug.cgi?id=1672207
920645 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920645
AVG-865 https://security.archlinux.org/AVG-865
cpe:2.3:a:libgd:libgd:2.2.5:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:libgd:libgd:2.2.5:*:*:*:*:*:*:*
cpe:2.3:a:netapp:storage_automation_store:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:netapp:storage_automation_store:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:7.3.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:php:php:7.3.0:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
CVE-2019-6977 Exploit https://github.com/cfreal/exploits/blob/1a671d1d8510e93a0b2607261e9b779562585fe2/CVE-2019-6977-imagecolormatch/exploit.php
CVE-2019-6977 Exploit https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/remote/46677.php
CVE-2019-6977 https://nvd.nist.gov/vuln/detail/CVE-2019-6977
RHSA-2020:4659 https://access.redhat.com/errata/RHSA-2020:4659
Data source Exploit-DB
Date added April 9, 2019
Description PHP 7.2 - 'imagecolormatch()' Out of Band Heap Write
Ransomware campaign use Unknown
Source publication date Feb. 27, 2019
Exploit type remote
Platform php
Source update date April 9, 2019
Source URL https://github.com/cfreal/exploits/blob/1a671d1d8510e93a0b2607261e9b779562585fe2/CVE-2019-6977-imagecolormatch/exploit.php
Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-6977.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P Found at https://nvd.nist.gov/vuln/detail/CVE-2019-6977
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2019-6977
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.97853
EPSS Score 0.58196
Published At Dec. 17, 2024, midnight
Date Actor Action Source VulnerableCode Version
There are no relevant records.