GLSA 200411-29: unarj: Long filenames buffer overflow and a path traversal vulnerability

Severity:normal
Title:unarj: Long filenames buffer overflow and a path traversal vulnerability
Date:11/19/2004
Bugs: #70966
ID:200411-29

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.

Background

unarj is an ARJ archive decompressor.

Affected packages

Package Vulnerable Unaffected Architecture(s)
app-arch/unarj < 2.63a-r2 >= 2.63a-r2 All supported architectures

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.

Workaround

There is no known workaround at this time.

Resolution

All unarj users should upgrade to the latest version:

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

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-200411-29.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!