libpng png_set_rgb_to_gray() buffer overflow

libpng-pngsetrgbtogray-bo (64637) The risk level is classified as HighHigh Risk

Description:

libpng is vulnerable to a buffer overflow, caused by improper bounds checking by the png_set_rgb_to_gray() function. By persuading a victim to open a specially-crafted PNG file, a remote attacker could overflow a buffer and execute arbitrary code on the system or cause the application to crash.

*CVSS:

Base Score: 6.8
  Access Vector: Network
  Access Complexity: Medium
  Authentication: None
  Confidentiality Impact: Partial
  Integrity Impact: Partial
  Availability Impact: Partial
 
Temporal Score: 5
  Exploitability: Unproven
  Remediation Level: Official-Fix
  Report Confidence: Confirmed

Consequences:

Gain Access

Remedy:

Upgrade to the latest version of libpng (1.5.1beta01 or later), available from the libpng Web site. See References.

References:

  • libpng Web Site: libpng is the official PNG reference library.
  • SourceForge: PNG and MNG/JNG image formats: Release of libpng-1.5.0.
  • BID-45761: Libpng 'png_set_rgb_to_gray()' Remote Code Execution Vulnerability
  • CVE-2011-0408: pngrtran.c in libpng 1.5.x before 1.5.1 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted palette-based PNG image that triggers a buffer overflow, related to the png_do_expand_palette function, the png_do_rgb_to_gray function, and an integer underflow. NOTE: some of these details are obtained from third party information.
  • OSVDB ID: 70417: libpng pngrtran.c png_do_rgb_to_gray() Function PNG File Handling Overflow
  • SA42863: libpng png_do_rgb_to_gray() PNG Processing Vulnerability
  • SECTRACK ID: 1024955: libpng Memory Corruption Error in png_do_rgb_to_gray() May Let Remote Users Execute Arbitrary Code
  • US-CERT VU#643140: Libpng 1.5.0 png_set_rgb_to_gray() vulnerability

Platforms Affected:

  • libpng libpng 1.5.0

Reported:

Jan 08, 2011

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