Home    |    View Topics    |    Search    |    Contact Us    |   



Category:   Application (Generic)  >   libwpd Vendors:
libwpd Buffer Overflows Let Remote Users Execute Arbitrary Code
SecurityTracker Alert ID:  1017789
SecurityTracker URL:
CVE Reference:   CVE-2007-0002, CVE-2007-1466   (Links to External Site)
Updated:  Mar 22 2007
Original Entry Date:  Mar 16 2007
Impact:   Execution of arbitrary code via network, User access via network
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): prior to 0.8.9
Description:   A vulnerability was reported in libwpd. A remote user can cause arbitrary code to be executed on the target user's system.

A remote user can create a specially crafted WordPerfect document that, when loaded by the target user, will trigger an integer overflow or heap overflow and execute arbitrary code on the target system. The code will run with the privileges of the target user or the application using libwpd.

The WP6GeneralTextPacket::_readContents() function, WP3TablesGroup::_readContents() function, and WP5DefinitionGroup_DefineTablesSubGroup::WP5DefinitionGroup_DefineTablesSubGroup() functions are affected.

The vendor was notified on January 11, 2007.

iDefense reported the WP6GeneralTextPacket vulnerability.and Sean Larsson from iDefense Labs discovered the other vulnerabilities.

Impact:   A remote user can create a file that, when loaded by the target user, will execute arbitrary code on the target user's system.
Solution:   The vendor has issued a fixed version (0.8.9).
Vendor URL: (Links to External Site)
Cause:   Boundary error
Underlying OS:  Linux (Any), UNIX (Any), Windows (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
Mar 16 2007 (Red Hat Issues Fix) libwpd Buffer Overflows Let Remote Users Execute Arbitrary Code
Red Hat has released a fix for Red Hat Enterprise Linux 5.
Mar 22 2007 (Red Hat Issues Fix for OpenOffice) libwpd Buffer Overflows Let Remote Users Execute Arbitrary Code
Red Hat has issued a fix for OpenOffice on Red Hat Enterprise Linux 3 and 4.

 Source Message Contents

Subject:  iDefense Security Advisory 03.16.07: Multiple Vendor libwpd Multiple

Multiple Vendor libwpd Multiple Buffer Overflow Vulnerabilities

iDefense Security Advisory 03.16.07
Mar 16, 2007


libwpd is a C++ library used to decode and encode word perfect documents.
It is commonly used as a plug-in in word processing utilities such as Open
Office and Abiword. For more information please visit the following URL.


Remote exploitation of multiple buffer overflow vulnerabilities in libwpd,
as included in various vendors' operating system distributions, could
allow an attacker to execute arbitrary code.

One problem specifically exists in the WP6GeneralTextPacket::_readContents
function. This function reads in a series of integer values and sums them.
This sum is then used to allocate a block of memory from the heap. The
function then copies data from the file into the buffer using each operand
from the addition as the number of bytes to copy. The summing operation
leads to an integer overflow, and the buffer can then be overflowed by the
copy operations.

Two additional problems exist in the WP3TablesGroup::_readContents() and
functions. These functions read an integer value from an attacker supplied
file, and uses the value as a loop counter. In the loop a statically sized
buffer is filled with arbitrary data from the file. This leads to an
exploitable heap overflow.


Successful exploitation of these vulnerabilities requires an attacker to
persuade a user into opening a specially crafted Wordperfect (WPD)
document. If successful, the attacker could execute arbitrary code with
the permissions of the victim.


iDefense has confirmed the existence of this vulnerability in libwpd
version 0.8.7. Previous versions may also be affected. This library is
used by applications such as Abiword, Kword, and Open Office.


iDefense is currently unaware of any workarounds for this issue.


The libwpd maintainers have addressed these vulnerabilities with the
release of version 0.8.9.


The Common Vulnerabilities and Exposures (CVE) project has assigned the
name CVE-2007-0002 to this issue. This is a candidate for inclusion in
the CVE list (, which standardizes names for
security problems.


01/11/2007  Initial vendor notification
01/12/2007  Initial vendor response
03/16/2007  Coordinated public disclosure


The first issue described was reported to iDefense by an anonymous
Further analysis by Sean Larsson (iDefense Labs) lead to the discovery of
additional problems.

Get paid for vulnerability research

Free tools, research and upcoming events


Permission is granted for the redistribution of this alert electronically.
It may not be edited in any way without the express written consent of
iDefense. If you wish to reprint the whole or any part of this alert in
any other medium other than electronically, please e-mail for permission.

Disclaimer: The information in the advisory is believed to be accurate at
the time of publishing based on currently available information. Use of
the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on, this
To unsubscribe, go here:

Go to the Top of This SecurityTracker Archive Page

Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, LLC