Gentoo Logo

unp: Arbitrary command execution


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200801-01 / remote
Release Date January 09, 2008
Latest Revision January 09, 2008: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/unp < 1.0.14 >= 1.0.14 All supported architectures

Related bugreports: #203106


unp allows execution of arbitrary code via malicious file names.

2.  Impact Information


unp is a script for unpacking various file formats.


Erich Schubert from Debian discovered that unp does not escape file names properly before passing them to calls of the shell.


A remote attacker could entice a user or automated system to unpack a compressed archive with a specially crafted file name, leading to the execution of shell commands from within the filename. That code will be executed with the privileges of the user running unp.

3.  Resolution Information


There is no known workaround at this time.


All unp users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/unp-1.0.14"

4.  References


Page updated January 09, 2008

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.