GNU Tar: Directory traversal vulnerability — GLSA 200709-09

A directory traversal vulnerability has been discovered in GNU Tar.

Affected Packages

app-arch/tar on all architectures
Affected versions < 1.18-r2
Unaffected versions >= 1.18-r2

Background

The GNU Tar program provides the ability to create tar archives, as well as various other kinds of manipulation.

Description

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.

Resolution

All GNU Tar users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=app-arch/tar-1.18-r2"

References

Release Date
September 15, 2007

Latest Revision
September 15, 2007: 01

Severity
normal

Exploitable
remote

Bugzilla entries