Debian Bug report logs -
#774172
rar: CVE-2014-9983: symlink directory traversal
Reported by: Jakub Wilk <jwilk@debian.org>
Date: Mon, 29 Dec 2014 21:33:07 UTC
Severity: important
Tags: security, upstream
Found in versions rar/2:4.2.0-1, rar/2:5.2.1b2-1
Fixed in version rar/2:5.3.b2-1
Done: Martin Meredith <mez@debian.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, jwilk@debian.org, Martin Meredith <mez@debian.org>
:
Bug#774172
; Package rar
.
(Mon, 29 Dec 2014 21:33:11 GMT) (full text, mbox, link).
Message #3 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: rar
Version: 2:4.2.0-1
Tags: security
RAR follows symlinks when unpacking stuff, even the symlinks that were
created during the same unpack process.
It is therefore possible to create a malicious RAR archive that will be
unpacked into arbitrary directory outside cwd.
Proof of concept:
$ pwd
/home/jwilk
$ rar x traversal.rar
RAR 4.20 Copyright (c) 1993-2012 Alexander Roshal 9 Jun 2012
Trial version Type RAR -? for help
Extracting from traversal.rar
Extracting tmp OK
Extracting tmp/moo OK
All OK
$ ls -l /tmp/moo
-rw-r--r-- 1 jwilk jwilk 4 Dec 29 21:41 /tmp/moo
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--
Jakub Wilk
[traversal.rar (application/rar, attachment)]
Marked as found in versions rar/2:5.2.1b2-1.
Request was from Scott Kitterman <scott@kitterman.com>
to control@bugs.debian.org
.
(Mon, 27 Apr 2015 17:00:20 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Martin Meredith <mez@debian.org>
:
Bug#774172
; Package rar
.
(Tue, 27 Dec 2016 15:21:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Moritz Mühlenhoff <jmm@inutil.org>
:
Extra info received and forwarded to list. Copy sent to Martin Meredith <mez@debian.org>
.
(Tue, 27 Dec 2016 15:21:02 GMT) (full text, mbox, link).
Message #10 received at 774172@bugs.debian.org (full text, mbox, reply):
On Mon, Dec 29, 2014 at 10:29:28PM +0100, Jakub Wilk wrote:
> Package: rar
> Version: 2:4.2.0-1
> Tags: security
>
> RAR follows symlinks when unpacking stuff, even the symlinks that were
> created during the same unpack process.
> It is therefore possible to create a malicious RAR archive that will be
> unpacked into arbitrary directory outside cwd.
What't the status? This bug hasn't seen maintainer acknowledgement in
two years?
Cheers,
Moritz
Information forwarded
to debian-bugs-dist@lists.debian.org, Martin Meredith <mez@debian.org>
:
Bug#774172
; Package rar
.
(Tue, 27 Dec 2016 15:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Martin Meredith <martin@sourceguru.net>
:
Extra info received and forwarded to list. Copy sent to Martin Meredith <mez@debian.org>
.
(Tue, 27 Dec 2016 15:27:03 GMT) (full text, mbox, link).
Message #15 received at 774172@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This has been passed on upstream, with no responses as it should have been
marked.
On 27 Dec 2016 3:21 p.m., "Moritz Mühlenhoff" <jmm@inutil.org> wrote:
> On Mon, Dec 29, 2014 at 10:29:28PM +0100, Jakub Wilk wrote:
> > Package: rar
> > Version: 2:4.2.0-1
> > Tags: security
> >
> > RAR follows symlinks when unpacking stuff, even the symlinks that were
> > created during the same unpack process.
> > It is therefore possible to create a malicious RAR archive that will be
> > unpacked into arbitrary directory outside cwd.
>
> What't the status? This bug hasn't seen maintainer acknowledgement in
> two years?
>
> Cheers,
> Moritz
>
[Message part 2 (text/html, inline)]
Severity set to 'important' from 'normal'
Request was from Ben Hutchings <ben@decadent.org.uk>
to control@bugs.debian.org
.
(Sat, 22 Apr 2017 15:27:04 GMT) (full text, mbox, link).
Added tag(s) upstream.
Request was from Ben Hutchings <ben@decadent.org.uk>
to control@bugs.debian.org
.
(Sat, 22 Apr 2017 15:27:06 GMT) (full text, mbox, link).
Changed Bug title to 'rar: CVE-2014-9983: symlink directory traversal' from 'rar: symlink directory traversal'.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org
.
(Sun, 04 Jun 2017 14:57:04 GMT) (full text, mbox, link).
Reply sent
to Martin Meredith <mez@debian.org>
:
You have taken responsibility.
(Tue, 29 Aug 2017 10:27:04 GMT) (full text, mbox, link).
Notification sent
to Jakub Wilk <jwilk@debian.org>
:
Bug acknowledged by developer.
(Tue, 29 Aug 2017 10:27:04 GMT) (full text, mbox, link).
Message #26 received at 774172-done@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
fixed 2:5.4.0+dfsg.1-0.1
thanks
Just looking over this - and I can't reproduce this in in current versions.
I'm closing this - but please, feel free to re-open and send me further
details if there's a further fix.
[Message part 2 (text/html, inline)]
Marked as fixed in versions rar/2:5.3.b2-1.
Request was from Salvatore Bonaccorso <carnil@debian.org>
to control@bugs.debian.org
.
(Tue, 29 Aug 2017 19:06:02 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Martin Meredith <mez@debian.org>
:
Bug#774172
; Package rar
.
(Tue, 29 Aug 2017 19:21:20 GMT) (full text, mbox, link).
Acknowledgement sent
to Salvatore Bonaccorso <carnil@debian.org>
:
Extra info received and forwarded to list. Copy sent to Martin Meredith <mez@debian.org>
.
(Tue, 29 Aug 2017 19:21:20 GMT) (full text, mbox, link).
Message #33 received at 774172@bugs.debian.org (full text, mbox, reply):
This should be fixed in 5.21 upstream:
+ Version 5.21
+
+ 1. While previous versions could produce RAR5 volumes of slightly
+ smaller than requested size sometimes, such situation is less
+ likely now. In most cases volume size equals to specified by user.
+
+ 2. Now by default RAR skips symbolic links with absolute paths
+ in link target when extracting. You can enable creating such links
+ with -ola switch.
+
+ Such links pointing to directories outside of extraction destination
+ directory can present a security risk. Enable their extraction only
+ if you are sure that archive contents is safe, such as your own backup.
the first version in unstable containging the fix should be 2:5.3.b2-1.
Regards,
Salvatore
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org
.
(Wed, 27 Sep 2017 07:32:03 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Wed Jun 19 18:40:31 2019;
Machine Name:
beach
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.