Memory corruption in GD Graphics Library and PHP - CVE-2009-3546

 

Memory corruption in GD Graphics Library and PHP - CVE-2009-3546

Published: May 2, 2018


Vulnerability identifier: #VU12348
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2009-3546
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists in the _gdGetColors function in gd_gd.c due to improper verification of a certain colorsTotal structure member. A remote attacker can trick the victim into opening a specially crafted GD file, trigger buffer over-read or buffer overflow and execute arbitrary code.

Successful exploitation of the vulnerability may result in system compromise.


Affected software

GD Graphics Library
PHP
Debian Linux
Gentoo Linux
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Desktop
Slackware Linux

How to mitigate CVE-2009-3546

Update GD Graphics Library to 2.0.35 or PHP to 5.3.1.


External References

Related Security Bulletins