Secunia Research: XnView, NConvert, and GFL SDK Radiance RGBE Buffer Overflow

===================================================================== 

                     Secunia Research 30/01/2008

   - XnView, NConvert, and GFL SDK Radiance RGBE Buffer Overflow -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software 

* XnView 1.91, XnView 1.92
* NConvert 4.85
* GFL SDK 2.870

NOTE: Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Highly critical
Impact: System access
Where:  From remote

====================================================================== 
3) Vendor's Description of Software 

XnView:
"A software to view and convert graphic files, really simple to use!"

Product Link:
http://pagesperso-orange.fr/pierre.g/xnview/enhome.html

NConvert: 
"Come to discover NConvert, a batch utility to convert graphic files!"

Product Link:
http://pagesperso-orange.fr/pierre.g/xnview/en_nconvert.html

GFL SDK:
"GFL SDK is a free library (used by XnView) for developers who would
like to support graphics image formats easily."

Product Link:
http://pagesperso-orange.fr/pierre.g/xnview/engfl.html

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in XnView, NConvert,
and GFL SDK, which can be exploited by malicious people to compromise
a user's system.

The vulnerability is cause due to a boundary error when reading
Radiance RGBE (*.hdr) files. This can be exploited to cause a
stack-based buffer overflow by e.g. tricking a user into viewing a
specially crafted Radiance RGBE file.

Successful exploitation allows execution of arbitrary code.

====================================================================== 
5) Solution 

XnView:
Update to version 1.92.1.

NConvert:
Update to version 4.86.

GFL SDK:
Currently, no updated version is available.

====================================================================== 
6) Time Table 

04/01/2008 - Vendor notified.
04/01/2008 - Vendor response.
29/01/2008 - Vendor releases updated versions of XnView and NConvert.
30/01/2008 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Stefan Cornelius, Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has assigned 
CVE-2008-0064 for the vulnerability.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://corporate.secunia.com/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.

http://secunia.com/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

http://corporate.secunia.com/secunia_research/33/

Secunia regularly hires new skilled team members. Check the URL below to
see currently vacant positions:

http://secunia.com/secunia_vacancies/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/secunia_security_advisories/ 

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2008-01/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================