Improper input validation in GD Graphics Library - CVE-2016-9317

 

Improper input validation in GD Graphics Library - CVE-2016-9317

Published: July 19, 2017 / Updated: July 19, 2017


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

Vulnerability details

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

The vulnerability exists due to improper input validation when processing overly large images in the gdImageCreate() function in the GD Graphics Library (aka libgd) before 2.2.4. A remote attacker can supply an overly large image and crash the application, using the affected library.

Affected software

GD Graphics Library
Debian Linux
Ubuntu
Slackware Linux
Fedora
gd (Alpine package)
libgd2-noxpm (Ubuntu package)
libgd2-xpm (Ubuntu package)
libgd2 (Debian package)
libgd3 (Ubuntu package)
libwmf
gd

How to mitigate CVE-2016-9317

Update to version 2.2.4.

gd (Alpine package) - update to 2.2.4-r0
libgd2-noxpm (Ubuntu package) - update to 2.0.36~rc1~dfsg-6ubuntu2.4
libgd2-xpm (Ubuntu package) - update to 2.0.36~rc1~dfsg-6ubuntu2.4
libgd2 (Debian package) - addressed in versions 2.0.36~rc1~dfsg-6.1+deb7u8, 2.1.0-5+deb8u9
libgd3 (Ubuntu package) - addressed in versions 2.1.0-3ubuntu0.6, 2.1.1-4ubuntu0.16.04.6, 2.2.1-1ubuntu3.3
libwmf - addressed in versions 0.2.8.4-50.fc24, 0.2.8.4-50.fc25
gd - addressed in versions 2.2.4-1.fc24, 2.2.4-1.fc25

External References

Related Security Bulletins