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 1018150 - (CVE-2013-4420) CVE-2013-4420 libtar: missing validation of file names
CVE-2013-4420 libtar: missing validation of file names
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20131001,reported=2...
: Security
Depends On: 1018151 1018152 1018153 1018154
Blocks: 1018329
  Show dependency treegraph
 
Reported: 2013-10-11 06:48 EDT by Ratul Gupta
Modified: 2015-08-19 04:19 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ratul Gupta 2013-10-11 06:48:19 EDT
libtar was found to have a flaw where it does not validate the file names stored inside a tar file, which could possibly lead to a file extraction outside the prefix path.

The functions "tar_extract_glob" and "tar_extract_all" accept a path prefix on where to extract files to, but libtar doesn't validate the file names inside the tar file. For example: consider a file name "../../etc/passwd". If extract_all is called with prefix "/home/USER/", libtar would try to overwrite "/etc/passwd".

There is a workaround where a user could validate all filenames inside tar archive before calling tar_extract_*, but it seems that most of the users don't do that, so it's better that libtar should itself validate the file names.

References:
http://seclists.org/oss-sec/2013/q4/69
https://lists.feep.net:8080/pipermail/libtar/2013-October/000362.html
Comment 2 Ratul Gupta 2013-10-11 06:51:43 EDT
Created libtar tracking bugs for this issue:

Affects: fedora-all [bug 1018151]
Affects: epel-5 [bug 1018152]
Comment 3 Huzaifa S. Sidhpurwala 2013-10-16 01:41:39 EDT
Statement:

This issue affects the version of libtar as shipped with Red Hat Enterprise Linux 6. The Red Hat Security Response Team has rated this issue as having low security impact, a future update may address this flaw.

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