GLSA-200410-01 : sharutils: Buffer overflows in shar.c and unshar.c

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-200410-01
(sharutils: Buffer overflows in shar.c and unshar.c)

sharutils contains two buffer overflows. Ulf Harnhammar discovered a
buffer overflow in shar.c, where the length of data returned by the wc
command is not checked. Florian Schilhabel discovered another buffer
overflow in unshar.c.

Impact :

An attacker could exploit these vulnerabilities to execute arbitrary
code as the user running one of the sharutils programs.

Workaround :

There is no known workaround at this time.

See also :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265904
http://www.gentoo.org/security/en/glsa/glsa-200410-01.xml

Solution :

All sharutils users should upgrade to the latest version:
# emerge sync
# emerge -pv '>=app-arch/sharutils-4.2.1-r10'
# emerge '>=app-arch/sharutils-4.2.1-r10'

Risk factor :

High / CVSS Base Score : 7.5
(CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P)

Family: Gentoo Local Security Checks

Nessus Plugin ID: 15407 (gentoo_GLSA-200410-01.nasl)

Bugtraq ID:

CVE ID: CVE-2004-1773