The issue is caused by a heap-based buffer overflow in the `gdImageColorMatch` function of the GD Graphics Library. This can be exploited by a remote attacker who can trigger `imagecolormatch` calls with specially crafted image data, potentially allowing the attacker to initiate malicious actions.