Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 216937 - CVE-2006-6097 GNU tar directory traversal
CVE-2006-6097 GNU tar directory traversal
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: tar (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Peter Vrabec
Ben Levenson
: Security
Depends On:
Blocks: 216938 218426
  Show dependency treegraph
Reported: 2006-11-22 14:45 EST by Lubomir Kundrak
Modified: 2007-11-16 20:14 EST (History)
0 users

See Also:
Fixed In Version: RHSA-2006-0749
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-19 17:47:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0749 normal SHIPPED_LIVE Moderate: tar security update 2006-12-19 17:47:44 EST

  None (edit)
Description Lubomir Kundrak 2006-11-22 14:45:29 EST
Description of problem:

GNU tar contains a flaw, that makes tar overwrite an arbitrairy file when
extracting a crafted archive.

See the original advisory for details.

Steps to Reproduce:


# crafting a symlink

gcc -o tarxyz tarxyz.c
./tarxyz > xyz.tar

# cleaning environment up

rm -f/home/$USER/hello.txt
rm -f xyz

# adding files, relative to xyz/

mkdir -p xyz/home/$USER
echo "Hello" > xyz/home/$USER/hello.txt
tar -rf xyz.tar xyz/home/$USER

# exploitation

rm -rf xyz      # so symlink to / can be created
$TAR -xf xyz.tar
cat /home/$USER/hello.txt

Additional info:

All supported RHEL (2.1--4) and FC (5,6) releases are vulnerable
Comment 1 Lubomir Kundrak 2006-11-27 03:37:35 EST
Kees Cook (of Ubuntu) reported an issue to upstream and proposed a patch.
See this thread:
Comment 3 Josh Bressers 2006-12-01 12:53:40 EST
Ping on this issue.

Can we get some updated packages.  The patch looks to be rather simple.
Comment 5 Peter Vrabec 2006-12-05 05:10:14 EST
fixed in:

I dunno how to filed RHSA-2006:0749, concretely built for AS21.1.
Comment 9 Red Hat Bugzilla 2006-12-19 17:47:47 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.