Bug 251921 (CVE-2007-4131) - CVE-2007-4131 tar directory traversal vulnerability
Summary: CVE-2007-4131 tar directory traversal vulnerability
Alias: CVE-2007-4131
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 252967 252968 252969 252970 253684 253685
TreeView+ depends on / blocked
Reported: 2007-08-13 14:23 UTC by Tomas Hoger
Modified: 2023-05-11 12:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-08-31 07:40:30 UTC

Attachments (Terms of Use)
contains_dot_dot patch (531 bytes, patch)
2007-08-13 14:25 UTC, Tomas Hoger
no flags Details | Diff

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2007:0860 0 normal SHIPPED_LIVE Moderate: tar security update 2008-01-08 00:44:53 UTC

Description Tomas Hoger 2007-08-13 14:23:06 UTC
Directory traversal vulnerability was discovered in GNU tar.  Vulnerability can
be exploited by specially crafted tar archive to overwrite arbitrary file
writable by user running tar.  Problem occurs in contains_dot_dot function,
which does not properly check names of directory symlinks.


Red Hat would like to thank Dmitry V. Levin for reporting this issue.

Comment 1 Tomas Hoger 2007-08-13 14:25:52 UTC
Created attachment 161175 [details]
contains_dot_dot patch

Patch by Dmitry V. Levin used by Owl.

Comment 4 Tomas Hoger 2007-08-20 13:33:10 UTC
Patch is in upstream cvs, embargo removed.

Comment 8 Tomas Hoger 2007-08-23 12:56:15 UTC
This issue did not affect tar packages as distributed with Red Hat
Enterprise Linux 2.1 or 3.

Comment 9 Tomas Hoger 2007-08-31 07:40:30 UTC
Issue fixed on all supported platforms, closing Security Response bug.

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