Input validation error in libgd - CVE-2016-6128

 

Input validation error in libgd - CVE-2016-6128

Published: August 7, 2016 / Updated: July 28, 2020


Vulnerability identifier: #VU32246
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2016-6128
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to perform a denial of service (DoS) attack.

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.


Affected software

libgd
Gentoo Linux
Fedora
gd (Alpine package)
gd

How to mitigate CVE-2016-6128

Install update from vendor's website.

libgd - update to 2.2.3
gd (Alpine package) - update to 2.1.1-r2
gd - update to 2.2.3-1.fc24

External References

Related Security Bulletins