GLSA-200709-09 : GNU Tar: Directory traversal vulnerability

medium Nessus Plugin ID 26099

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-200709-09 (GNU Tar: Directory traversal vulnerability)

Dmitry V. Levin discovered a directory traversal vulnerability in the contains_dot_dot() function in file src/names.c.
Impact :

By enticing a user to extract a specially crafted tar archive, a remote attacker could extract files to arbitrary locations outside of the specified directory with the permissions of the user running GNU Tar.
Workaround :

There is no known workaround at this time.

Solution

All GNU Tar users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=app-arch/tar-1.18-r2'

See Also

https://security.gentoo.org/glsa/200709-09

Plugin Details

Severity: Medium

ID: 26099

File Name: gentoo_GLSA-200709-09.nasl

Version: 1.14

Type: local

Published: 9/24/2007

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.8

CVSS v2

Risk Factor: Medium

Base Score: 6.8

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

Vulnerability Information

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

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

Patch Publication Date: 9/15/2007

Vulnerability Publication Date: 8/13/2007

Reference Information

CVE: CVE-2007-4131

GLSA: 200709-09