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.

Project Subscriptions

Vendors Products
Canonical Subscribe
Ubuntu Linux Subscribe
Debian Linux Subscribe
Storage Automation Store Subscribe
Enterprise Linux Subscribe
Rhel Software Collections Subscribe
Advisories
Source ID Title
Debian DLA Debian DLA DLA-1651-1 libgd2 security update
Debian DSA Debian DSA DSA-4384-1 libgd2 security update
Ubuntu USN Ubuntu USN USN-3900-1 GD vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.89556}

epss

{'score': 0.89145}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-04T20:38:32.847Z

Reserved: 2019-01-26T00:00:00

Link: CVE-2019-6977

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2019-01-27T02:29:00.340

Modified: 2024-11-21T04:47:20.960

Link: CVE-2019-6977

cve-icon Redhat

Severity : Moderate

Publid Date: 2018-12-09T00:00:00Z

Links: CVE-2019-6977 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses