Secunia Security Advisory - A vulnerability has 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. The vulnerability is caused due to a boundary error 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. Successful exploitation requires that pnmtopng is used with the -alpha 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 vulnerability has been reported in versions prior to 2.39. Note: Several potential malloc allocation overflow bugs have also been fixed.
2a67b238c8a336d7c27f90f087853e6afc3d41ee8449d22c4fc25797fc1d329d
TITLE:
Pnmtopng "alphas_of_color" Buffer Overflow Vulnerability
SECUNIA ADVISORY ID:
SA17544
VERIFY ADVISORY:
http://secunia.com/advisories/17544/
CRITICAL:
Moderately critical
IMPACT:
DoS, System access
WHERE:
>From remote
SOFTWARE:
Pnmtopng 2.x
http://secunia.com/product/6111/
DESCRIPTION:
A vulnerability has 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.
The vulnerability is caused due to a boundary error 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.
Successful exploitation requires that pnmtopng is used with the
"-alpha" 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 vulnerability has 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/showfiles.php?group_id=32355&package_id=88579&release_id=370545
PROVIDED AND/OR DISCOVERED BY:
Reported by vendor.
ORIGINAL ADVISORY:
http://sourceforge.net/project/shownotes.php?release_id=370545
OTHER REFERENCES:
SA17221:
http://secunia.com/advisories/17221/
----------------------------------------------------------------------
About:
This Advisory was delivered by Secunia as a free service to help
everybody keeping their systems up to date against the latest
vulnerabilities.
Subscribe:
http://secunia.com/secunia_security_advisories/
Definitions: (Criticality, Where etc.)
http://secunia.com/about_secunia_advisories/
Please Note:
Secunia recommends that you verify all advisories you receive by
clicking the link.
Secunia NEVER sends attached files with advisories.
Secunia does not advise people to install third party patches, only
use those supplied by the vendor.
----------------------------------------------------------------------