Heap-based Buffer Overflow in gdImageColorMatch function in LibGD

Heap-based Buffer Overflow in gdImageColorMatch function in LibGD

CVE-2019-6977 · MEDIUM Severity

AV:N/AC:M/AU:N/C:P/I:P/A:P

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.

Learn more about our Web Application Penetration Testing UK.