GD Graphics Library gdPngReadData denial of service

gd-gdpngreaddata-dos (34420) The risk level is classified as MediumMedium Risk

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.

*CVSS:

Base Score: 2.8
  Access Vector: Remote
  Access Complexity: High
  Authentication: Not Required
  Confidentiality Impact: None
  Integrity Impact: None
  Availability Impact: Partial
 
Temporal Score: 2.1
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Denial of Service

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.

References:

  • GD Graphics Library Web site: Main Page - LibGD.
  • HPSBUX02262 SSRT071447: HP-UX running Apache, Remote Arbitrary Code Execution, Cross Site Scripting (XSS).
  • libgd Bug FS#86: Possible infinite loop in libgd/gd_png.c (inside png_set_read_fn() callback) with truncated input.
  • PHP Web site: PHP 5.2.3 Release Announcement.
  • 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.
  • GLSA-200708-05: GD: Multiple vulnerabilities
  • GLSA-200710-02: PHP: Multiple vulnerabilities
  • GLSA-200711-34: CSTeX: Multiple vulnerabilities
  • GLSA-200805-13: PTeX: 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
  • OSVDB ID: 35788: GD Graphics Library (libgd) gdPngReadData() Function Truncated PNG Handling DoS
  • OSVDB ID: 36643: GD Graphics Library (libgd) gdPngReadData() Function Truncated PNG Data Handling DoS
  • 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

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
  • MandrakeSoft Mandrake Linux 2007.1 X86_64
  • 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 X86_64
  • MandrakeSoft Mandrake Linux Corporate Server 4.0
  • 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 WS
  • RedHat Enterprise Linux 3 Desktop
  • RedHat Enterprise Linux 3 AS
  • RedHat Enterprise Linux 3 ES
  • RedHat Enterprise Linux 4 AS
  • RedHat Enterprise Linux 4 ES
  • RedHat Enterprise Linux 4 Desktop
  • RedHat Enterprise Linux 4 WS
  • RedHat Enterprise Linux 4.5.z AS
  • RedHat Enterprise Linux 4.5.z ES
  • RedHat Enterprise Linux 4.6.z ES
  • RedHat Enterprise Linux 4.6.z AS
  • RedHat Enterprise Linux 5
  • RedHat Enterprise Linux 5 Client Workstation
  • RedHat Enterprise Linux 5 Client
  • RedHat Enterprise Linux 5 Server
  • RedHat Enterprise Linux 5.1.z EUS
  • 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

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 (IBM 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.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page

* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

About IBM Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.