Bugzilla – Bug 145081
VUL-0: CVE-2005-1918: tar directory traversal
Last modified: 2023-01-20 08:27:36 UTC
We received the following report via vendor-sec. This issue is not public yet, please keep any information about it inside SUSE. The described archive doesn't work on 10.0, on SLES8 it does. So tar versions in releases in between may also be vulnerable. Date: Mon, 23 Jan 2006 14:02:01 -0500 From: Josh Bressers <bressers@redhat.com> To: vendor-sec@lst.de Subject: [vendor-sec] Old tar issue We have recently discovered that when we fixed CVE-2002-0399 in GNU tar, we added a different similar issue. Here's a test case if anyone wants to verify: $ > a/foo $ > foo $ > /../../../tmp/foo $ tar cvfP test.tar ../foo ./../a/foo /../../../../tmp/foo ../foo ./../a/foo /../../../../tmp/foo $ tar -xvf test.tar ../foo ./tar: ../foo: Member name contains `..' ./../a/foo ./tar: ./../a/foo: Member name contains `..' /../../../../tmp/foo ./tar: /../../../../tmp/foo: Member name contains `..' ./tar: Error exit delayed from previous errors Note the extraction of /../../../../tmp/foo This issue is currently embargoed, if it affects anyone else (you used our patch), we can coordinate a release date. -- JB _______________________________________________ Vendor Security mailing list Vendor Security@lst.de https://www.lst.de/cgi-bin/mailman/listinfo/vendor-sec
Created attachment 64649 [details] test archive extract in some subdirectory of /tmp. if /tmp/foo exists after extraction tar did something wrong.
mmj is away. will have a closer look at it.
I'm missing the patch, Josh Bressers speaks of.
Do we use his older fix?
Nevertheless, I asked for it on vendor-.sec.
Created attachment 68895 [details] tar-dots.patch
BTW, Hendrik ist also doing a tar update. bug #151516.
CVE-2005-1918
Maintenance-Tracker-3586
public
PATCHINFO ? (SWAMPID 3586) (see also #151516
AFAICS submission of packages is not finished yet. And due to the fact that not all version have the same bug I would like to wait for the final state from Klaus. Otherwise the wrong patchinfo text may cause confusion.
current problem is: the given patch doesn't work (code looks even different). need to rework on it.
fixed packages submitted for: sles8, sles9 (incl. 9.1) security-team please handle rest of process.
/work/src/done/PATCHINFO/tar.patch.maintained.145081 /work/src/done/PATCHINFO/tar.patch.box.145081
And thanks Klaus. :)
packages approved
CVE-2005-1918: CVSS v2 Base Score: 2.6 (AV:N/AC:H/Au:N/C:N/I:P/A:N)