All reports
Low

gd: Invalid color index not properly handled

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2016-6128

Probability of exploitation in the next 30 days: 6.81%

FIRST EPSS · 2026-11-20

Description

The gdImageCropThreshold function in gd_crop.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 7.0.9, allows remote attackers to cause a denial of service (application crash) via an invalid color index.

It was found that libgd did not properly handle invalid color indexes in GD files. An attacker who could submit a crafted GD file for conversion could cause applications using libgd to crash, leading to denial of service.