Gentoo Logo

unarj: Long filenames buffer overflow and a path traversal vulnerability

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200411-29 / unarj
Release Date November 19, 2004
Latest Revision November 19, 2004: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
app-arch/unarj < 2.63a-r2 >= 2.63a-r2 All supported architectures

Related bugreports: #70966

Synopsis

unarj contains a buffer overflow and a directory traversal vulnerability. This could lead to overwriting of arbitrary files or the execution of arbitrary code.

2.  Impact Information

Background

unarj is an ARJ archive decompressor.

Description

unarj has a bounds checking vulnerability within the handling of long filenames in archives. It also fails to properly sanitize paths when extracting an archive (if the "x" option is used to preserve paths).

Impact

An attacker could trigger a buffer overflow or a path traversal by enticing a user to open an archive containing specially-crafted path names, potentially resulting in the overwrite of files or execution of arbitrary code with the permissions of the user running unarj.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All unarj users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/unarj-2.63a-r2"

4.  References



Print

Page updated November 19, 2004

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

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