XnView: Stack-based buffer overflow — GLSA 200707-06

XnView is vulnerable to a stack-based buffer overflow and possible remote code execution when handling XPM image files.

Affected Packages

x11-misc/xnview on the x86 architecture
Affected versions < 1.70
Unaffected versions

Background

XnView is software to view and convert graphics files. XPixMap (XPM) is a simple ascii-based graphics format.

Description

XnView is vulnerable to a stack-based buffer overflow while processing an XPM file with an overly long section string (greater than 1024 bytes).

Impact

An attacker could entice a user to view a specially crafted XPM file with XnView that could trigger the vulnerability and possibly execute arbitrary code with the rights of the user running XnView.

Workaround

There is no known workaround at this time.

Resolution

No update appears to be forthcoming from the XnView developer and XnView is proprietary, so the XnView package has been masked in Portage. We recommend that users select an alternate graphics viewer and conversion utility, and unmerge XnView:

 # emerge --unmerge xnview

References

Release Date
July 11, 2007

Latest Revision
July 11, 2007: 01

Severity
normal

Exploitable
remote

Bugzilla entries