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.

References[email protected]/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/[email protected]/message/3WRUPZVT2MWFUEMVGTRAGDOBHLNMGK5R/[email protected]/message/TEYUUOW75YD3DENIPYMO263E6NL2NFHI/[email protected]/message/TTXSLRZI5BCQT3H5KALG3DHUWUMNPDX2/


Source: MITRE

Published: 2019-01-27

Updated: 2020-08-24

Type: CWE-787

Risk Information

CVSS v2.0

Base Score: 6.8

Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P

Impact Score: 6.4

Exploitability Score: 8.6

Severity: MEDIUM

CVSS v3.0

Base Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Impact Score: 5.9

Exploitability Score: 2.8

Severity: HIGH