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

high Nessus Plugin ID 15407

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.

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'

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=265904

https://security.gentoo.org/glsa/200410-01

Plugin Details

Severity: High

ID: 15407

File Name: gentoo_GLSA-200410-01.nasl

Version: 1.17

Type: local

Published: 10/1/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.5

CVSS v2

Risk Factor: High

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:sharutils, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 10/1/2004

Reference Information

CVE: CVE-2004-1773

GLSA: 200410-01