Secunia Logo
Netsikker nu! 2008
 
Xpdf Multiple Buffer Overflow Vulnerabilities
Secunia Advisory: SA17897
Release Date: 2005-12-06
Popularity: 12,172 views

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

Software:Xpdf 3.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2005-3191
CVE-2005-3192
CVE-2005-3193


Description:
infamous41md has reported some vulnerabilities in xpdf, which can be exploited by malicious people to cause a DoS (Denial of Service) and potentially to compromise a user's system.

1) A boundary error exists in the "DCTStream::readBaselineSOF()" function in "xpdf/Stream.cc" when copying data from a PDF file to a heap-based buffer. This can be exploited to cause a heap-based buffer overflow via a specially crafted PDF file with an overly large "numComps" value.

2) A boundary error exists in the "DCTStream::readProgressiveSOF()" function in "xpdf/Stream.cc" when copying data from a PDF file to a heap-based buffer. This can be exploited to cause a heap-based buffer overflow via a specially crafted PDF file with an overly large "numComps" value.

3) An error exists in the "StreamPredictor::StreamPredictor()" function in "xpdf/Stream.cc" when using the "numComps" value to calculate the memory size to be allocated by "gmalloc()". This can be exploited to cause "gmalloc()" to allocate less memory than required, which will lead to a heap-based buffer overflow when data is copied from the PDF file to the allocated memory.

4) An error exists in the "JPXStream::readCodestream()" function in "xpdf/JPXStream.cc" when using the "nXTiles" and "nYTiles" values from a PDF file to copy data from the file into allocated memory. This can be exploited to cause a heap-based buffer overflow via a specially crafted PDF file with overly large "nXTiles" and "nYTiles" values.

Successful exploitation of the vulnerabilities requires that the user is e.g. tricked into opening a malicious PDF file.

The vulnerabilities have been reported in version 3.01. Prior versions may also be affected.

Solution:
Update to version 3.01pl1.
http://www.foolabs.com/xpdf/download.html

Provided and/or discovered by:
infamous41md

Original Advisory:
iDEFENSE:
http://www.idefense.com/application/poi/display?id=342&type=vulnerabilities
http://www.idefense.com/application/poi/display?id=343&type=vulnerabilities
http://www.idefense.com/application/poi/display?id=344&type=vulnerabilities
http://www.idefense.com/application/poi/display?id=345&type=vulnerabilities


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. phpBB "gen_rand_string()" Predictable RNG Weakness // 113 views
2. phpBB Avatar Script Insertion Vulnerability // 53 views
3. phpBB "url" bbcode Script Insertion Vulnerability // 49 views
4. phpBB BBcode "url" Script Insertion Vulnerability // 49 views
5. Microsoft Windows Vista Page Fault Handling Denial of Service // 42 views
6. VMware ESX Server Sun Java JDK / JRE Multiple Vulnerabilities // 42 views
7. phpBB Avatar Functions Information Disclosure and Deletion // 39 views
8. VMware VirtualCenter Multiple Vulnerabilities // 31 views
9. Serv-U File Renaming Directory Traversal and STOU Denial of Service // 30 views
10. Dovecot ACL Plugin Security Bypass Security Issues // 26 views