GD Graphics Library gdPngReadData denial of service
| gd-gdpngreaddata-dos (34420) |
Description:
The GD Graphics Library is vulnerable to a denial of service, caused by a vulnerability in the gdPngReadData function. By creating a specially-crafted PNG image file, a remote attacker could cause the application to enter an infinite loop, resulting in a denial of service, if the attacker could persuade the victim to view the malicious file with an application linked to the vulnerable library.
Platforms Affected:
- Boutell, GD Graphics Library 2.0.34
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 6.10
- Canonical, Ubuntu 7.04
- Gentoo, Linux
- HP, HP-UX B.11.11
- HP, HP-UX B.11.23
- HP, HP-UX B.11.31
- MandrakeSoft, Mandrake Linux 2007 X86_64
- MandrakeSoft, Mandrake Linux 2007
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- OpenPKG, OpenPKG CURRENT
- OpenPKG, OpenPKG Enterprise E1.0-SOLID
- RedHat, Application Stack v1 for EL AS 4
- RedHat, Application Stack v1 for EL ES 4
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 5 Client
- RedHat, Enterprise Linux 5 Server
- RedHat, Enterprise Linux 5 Client Workstation
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux Desktop 5.0
- Turbolinux, Turbolinux 10 Desktop
- Turbolinux, Turbolinux 10 F...
- Turbolinux, Turbolinux 10 Server
- Turbolinux, Turbolinux 10 Server x64 Ed
- Turbolinux, Turbolinux FUJI
- Turbolinux, Turbolinux Home
- Turbolinux, Turbolinux Multimedia
- Turbolinux, Turbolinux Personal
- Turbolinux, Turbolinux Appliance Server 2.0
Remedy:
Upgrade to the latest version of GD Graphics Library (2.0.35RC4 or later), available from the GD Graphics Library Web site. See References.
For PHP:
Upgrade to the latest version of PHP (5.2.3 or later), available from the PHP Web site. See References.
For Ubuntu Linux (libgd2):
Refer to USN-473-1 for patch, upgrade, or suggested workaround information. See References.
For Gentoo Linux (GD):
Refer to GLSA 200708-05 for patch, upgrade, or suggested workaround information. See References.
For Red Hat Linux (PHP):
Refer to RHSA-2007:0890-2 for patch, upgrade, or suggested workaround information. See References.
For Mandriva Linux (PHP):
Refer to MDKSA-2007:187 for patch, upgrade, or suggested workaround information. See References.
For other distributions:
Apply the appropriate update for your system. See References.
Consequences:
Denial of Service
References:
- GD Graphics Library Web site, Main Page - LibGD at http://www.libgd.org/Main_Page.
- HPSBUX02262 SSRT071447, HP-UX running Apache, Remote Arbitrary Code Execution, Cross Site Scripting (XSS) at http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c01178795.
- libgd Bug FS#86, Possible infinite loop in libgd/gd_png.c (inside png_set_read_fn() callback) with truncated input at http://bugs.libgd.org/?do=details&task_id=86.
- PHP Web site, PHP 5.2.3 Release Announcement at http://www.php.net/releases/5_2_3.php.
- ASA-2007-416: HP-UX running Apache, Remote Arbitrary Code Execution, Cross Site Scripting (XSS) (HPSBUX02262)
- ASA-2007-449: PHP security updates (RHSA-2007-0888 RHSA-2007-0889 & RHSA-2007-0890)
- ASA-2007-478: PHP security update (RHSA-2007-0891)
- ASA-2008-099: gd security update (RHSA-2008-0146)
- BID-24089: GD Graphics Library PNG File Processing Denial of Service Vulnerability
- CVE-2007-2756: The gdPngReadData function in libgd 2.0.34 allows user-assisted attackers to cause a denial of service (CPU consumption) via a crafted PNG image with truncated data, which causes an infinite loop in the png_read_info function in libpng.
- FrSIRT/ADV-2007-1904: GD Graphics Library gdPngReadData() Truncated Data Handling DoS Vulnerability
- FrSIRT/ADV-2007-1905: PHP GD Graphics Library gdPngReadData() PNG File Denial of Service Vulnerability
- FrSIRT/ADV-2007-2016: PHP Multiple Function Remote Integer Overflow and Security Bypass Vulnerabilities
- FrSIRT/ADV-2007-2336: GD Graphics Library Image Processing Integer Overflow and Denial of Service Issues
- FrSIRT/ADV-2007-3386: HP-UX Apache Code Execution and Cross Site Scripting Vulnerabilities
- GLSA-200708-05: GD: Multiple vulnerabilities
- GLSA-200710-02: PHP: Multiple vulnerabilities
- GLSA-200711-34: CSTeX: Multiple vulnerabilities
- MDKSA-2007:122: Updated gd packages fix vulnerability
- MDKSA-2007:123: Updated libwmf packages fix vulnerability
- MDKSA-2007:124: Updated tetex packages fix vulnerability
- MDKSA-2007:187: Updated PHP packages fix numerous vulnerabilities
- OpenPKG-SA-2007.020: PHP
- RHSA-2007-0889: Moderate: php security update
- RHSA-2007-0890: Moderate: php security update
- RHSA-2007-0891: Moderate: php security update
- RHSA-2008-0146: Moderate: gd security update
- SA25362: GD Graphics Library Truncated PNG Data Denial of Service
- SA25378: PHP "gdPngReadData()" Truncated PNG Data Denial of Service
- SA25855: GD Graphics Library Multiple Vulnerabilities
- SA27545: Avaya Products PHP Multiple Vulnerabilities
- SECTRACK ID: 1018187: PHP Infinite Loop in imagecreatefrompng() Lets Users Deny Service
- SUSE-SR:2007:013: SUSE Security Summary Report
Reported:
May 16, 2007
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
