libpng png_set_rgb_to_gray() buffer overflow
|libpng-pngsetrgbtogray-bo (64637)||High Risk|
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.
Upgrade to the latest version of libpng (1.5.1beta01 or later), available from the libpng Web site. See 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
- libpng libpng 1.5.0
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
* 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.