Pnmtopng "alphas_of_color" and "read_text" Buffer Overflow Vulnerabilities
Secunia Advisory: SA17544
Release Date: 2005-11-15
Last Update: 2005-11-22
Popularity: 6,366 views

Critical:
Moderately critical
Impact: DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:Pnmtopng 2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-3632
CVE-2005-3662


Description:
Two vulnerabilities have been reported in pnmtopng, which can be exploited by malicious people to cause a DoS (Denial of Service) and potentially to compromise a vulnerable system.

1) A boundary error exists when writing RGBA-palette PNG files. This can be exploited to crash pnmtopng and may allow arbitrary code execution via a specially crafted input file with exactly 256 colours.

2) A boundary error exists in "read_text()" when reading the text chunk of an input file. This can be exploited to cause a stack-based buffer overflow when the text chunk exceeds 256 bytes.

Successful exploitation requires that pnmtopng is used with the "-alpha" or the "-text" command line, and e.g. pnmtopng is used in a CGI application that allows remote users to submit image files for processing, or by tricking a user to use pnmtopng with a malicious ".pnm" file.

The vulnerabilities have been reported in versions prior to 2.39.

Note: Several potential malloc allocation overflow bugs have also been fixed.

Solution:
Update to version 2.39.
http://sourceforge.net/project/showfi...ackage_id=88579&release_id=370545

Provided and/or discovered by:
Reported by vendor.

Changelog:
2005-11-22: Added CVE reference. Added information about additional vulnerability. Updated "Name" and "Description" sections.

Original Advisory:
http://sourceforge.net/project/shownotes.php?release_id=370545

Other References:
SA17221:
http://secunia.com/advisories/17221/


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Sun Java JDK / JRE Multiple Vulnerabilities // 42 views
2. Zeroboard Multiple Vulnerabilities // 36 views
3. Zeroboard Two Vulnerabilities // 36 views
4. Php Blue Dragon CMS activecontent.php File Inclusion // 28 views
5. 3Com Wireless 8760 Access Point HTTP Request Processing Denial of Service // 28 views
6. VLC Media Player Multiple Vulnerabilities // 27 views
7. Netgear WN802T Wireless Access Point Two Vulnerabilities // 26 views
8. Opera Multiple Vulnerabilities // 23 views
9. Zeroboard ".htaccess" File Upload Vulnerability // 22 views
10. XASTIR Insecure Temporary Files // 20 views