GLSA-200407-11 : wv: Buffer overflow vulnerability

This script is Copyright (C) 2004-2014 Tenable Network Security, Inc.


Synopsis :

The remote Gentoo host is missing one or more security-related
patches.

Description :

The remote host is affected by the vulnerability described in GLSA-200407-11
(wv: Buffer overflow vulnerability)

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.

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.

See also :

http://www.nessus.org/u?7cf1d63b
http://www.gentoo.org/security/en/glsa/glsa-200407-11.xml

Solution :

All users should upgrade to the latest available version.
# emerge sync
# emerge -pv '>=app-text/wv-1.0.0-r1'
# emerge '>=app-text/wv-1.0.0-r1'

Risk factor :

Critical / CVSS Base Score : 10.0
(CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 14544 (gentoo_GLSA-200407-11.nasl)

Bugtraq ID:

CVE ID: CVE-2004-0645