Gentoo Logo

wv: Buffer overflow vulnerability

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200407-11 / app-text/wv
Release Date July 14, 2004
Latest Revision May 22, 2006: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-text/wv < 1.0.0-r1 >= 1.0.0-r1 All supported architectures

Related bugreports: #56595

Synopsis

A buffer overflow vulnerability exists in the wv library that can allow an attacker to execute arbitrary code with the privileges of the user running the vulnerable application.

2.  Impact Information

Background

The wv library allows access to MS Word files. It can parse Word files and allow other applications, such as abiword, to import those files into their native formats.

Description

A use of strcat without proper bounds checking leads to an exploitable buffer overflow. The vulnerable code is executed when wv encounters an unrecognized token, so a specially crafted file, loaded in wv, can trigger the vulnerable code and execute it's own arbitrary code. This exploit is only possible when the user loads the document into HTML view mode.

Impact

By inducing a user into running wv on a special file, an attacker can execute arbitrary code with the permissions of the user running the vulnerable program.

3.  Resolution Information

Workaround

Users should not view untrusted documents with wvHtml or applications using wv. When loading an untrusted document in an application using the wv library, make sure HTML view is disabled.

Resolution

All users should upgrade to the latest available version.

Code Listing 3.1: Resolution

# emerge sync

# emerge -pv ">=app-text/wv-1.0.0-r1"
# emerge ">=app-text/wv-1.0.0-r1"

4.  References



Print

Updated July 14, 2004

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Support OSL

Support OSL

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

Global Netoptex Inc.

Global Netoptex Inc.

Bytemark

Bytemark

Linux World Expo

Linux World Expo

Copyright 2001-2008 Gentoo Foundation, Inc. Questions, Comments? Contact us.