Search for vulnerabilities
| Vulnerability ID | VCID-4qdx-hh7p-abas |
| 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 |
| CWE-787 | Out-of-bounds Write |
| CWE-122 | Heap-based Buffer Overflow |
| System | Score | Found at |
|---|---|---|
| cvssv3 | 6.3 | https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2019-6977.json |
| epss | 0.8944 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.8944 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| epss | 0.90016 | https://api.first.org/data/v1/epss?cve=CVE-2019-6977 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| 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 |
| Percentile | 0.99536 |
| EPSS Score | 0.8944 |
| Published At | Aug. 2, 2025, 12:55 p.m. |
| Date | Actor | Action | Source | VulnerableCode Version |
|---|---|---|---|---|
| 2025-07-31T08:33:31.039481+00:00 | Alpine Linux Importer | Import | https://secdb.alpinelinux.org/v3.21/main.json | 37.0.0 |