[Full-disclosure] [ GLSA 200612-10 ] Tar: Directory traversal vulnerability



- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory GLSA 200612-10
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Severity: Normal
Title: Tar: Directory traversal vulnerability
Date: December 11, 2006
Bugs: #155901
ID: 200612-10

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

Tar is vulnerable to directory traversal possibly allowing for the
overwriting of arbitrary files.

Background
==========

The Tar program provides the ability to create and manipulate tar
archives.

Affected packages
=================

-------------------------------------------------------------------
Package / Vulnerable / Unaffected
-------------------------------------------------------------------
1 app-arch/tar < 1.16-r2 >= 1.16-r2

Description
===========

Tar does not properly extract archive elements using the GNUTYPE_NAMES
record name, allowing files to be created at arbitrary locations using
symlinks. Once a symlink is extracted, files after the symlink in the
archive will be extracted to the destination of the symlink.

Impact
======

An attacker could entice a user to extract a specially crafted tar
archive, possibly allowing for the overwriting of arbitrary files on
the system extracting the archive.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Tar users should upgrade to the latest version:

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

References
==========

[ 1 ] CVE-2006-6097
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6097

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200612-10.xml

Concerns?
=========

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@xxxxxxxxxx or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=======

Copyright 2006 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Relevant Pages

  • RE: Archive extraction issues
    ... directory which contains subdirectories and a couple of other tar ... extract the incremental.tar file (which contains other tar archives) ... Is there a way of getting tar to NOT extract the member archives? ... Checked by AVG Free Edition. ...
    (RedHat)
  • [ GLSA 200612-10 ] Tar: Directory traversal vulnerability
    ... Tar is vulnerable to directory traversal possibly allowing for the ... archives. ... Tar does not properly extract archive elements using the GNUTYPE_NAMES ... possibly allowing for the overwriting of arbitrary files on ...
    (Bugtraq)
  • Re: converting .zip to .tar.gz or to .tar.bz2
    ... I keep getting back empty archives. ... I obviously don't understand precisely what tar or gzip is doing with ... If the zip archive contains more than one file, you must extract it to a ... directory and then tar the directory. ...
    (comp.os.linux.misc)
  • Re: Untar to one file
    ... > I have a series of tar files which I would like to extract into ... All the files in the archives are ASCII so there should be no ...
    (comp.unix.questions)
  • Re: cd burning software for Solaris 10 SPARC
    ... to extract the files. ... the word "tar", which I suppose to be some kind of status or privilege ... When using the option type=ustar the resulting tar file can be read by ... his archives are quite correct (e.g. vim's tar module reads them ...
    (comp.unix.solaris)