GLSA-200411-29 : unarj: Long filenames buffer overflow and a path traversal vulnerability

critical Nessus Plugin ID 15777

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-200411-29 (unarj: Long filenames buffer overflow and a path traversal vulnerability)

unarj has a bounds checking vulnerability within the handling of long filenames in archives. It also fails to properly sanitize paths when extracting an archive (if the 'x' option is used to preserve paths).
Impact :

An attacker could trigger a buffer overflow or a path traversal by enticing a user to open an archive containing specially crafted path names, potentially resulting in the overwrite of files or execution of arbitrary code with the permissions of the user running unarj.
Workaround :

There is no known workaround at this time.

Solution

All unarj users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-arch/unarj-2.63a-r2'

See Also

https://security.gentoo.org/glsa/200411-29

Plugin Details

Severity: Critical

ID: 15777

File Name: gentoo_GLSA-200411-29.nasl

Version: 1.18

Type: local

Published: 11/22/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Critical

Base Score: 10

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

Vulnerability Information

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

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

Patch Publication Date: 11/19/2004

Vulnerability Publication Date: 10/12/2004

Reference Information

CVE: CVE-2004-0947, CVE-2004-1027

GLSA: 200411-29