Gentoo Logo

cpio: Directory traversal vulnerability


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200506-16 / cpio
Release Date June 20, 2005
Latest Revision June 20, 2005: 01
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/cpio < 2.6-r3 >= 2.6-r3 All supported architectures

Related bugreports: #90619


cpio contains a flaw which may allow a specially crafted cpio archive to extract files to an arbitrary directory.

2.  Impact Information


cpio is a file archival tool which can also read and write tar files.


A vulnerability has been found in cpio that can potentially allow a cpio archive to extract its files to an arbitrary directory of the creator's choice.


An attacker could create a malicious cpio archive which would create files in arbitrary locations on the victim's system. This issue could also be used in conjunction with a previous race condition vulnerability (CAN-2005-1111) to change permissions on files owned by the victim.

3.  Resolution Information


There is no known workaround at this time.


All cpio users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.6-r3"

4.  References


Page updated June 20, 2005

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.