Gentoo: UnAce Buffer overflow and directory traversal vulnerabilities
Posted by Benjamin D. Thomas   
Gentoo UnAce is vulnerable to several buffer overflow and directory traversal attacks.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200502-32
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: UnAce: Buffer overflow and directory traversal
            vulnerabilities
      Date: February 28, 2005
      Bugs: #81958
        ID: 200502-32

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
========

UnAce is vulnerable to several buffer overflow and directory traversal
attacks.

Background
==========

UnAce is an utility to extract, view and test the contents of an ACE
archive.

Affected packages
=================

    -------------------------------------------------------------------
     Package         /  Vulnerable  /                       Unaffected
    -------------------------------------------------------------------
  1  app-arch/unace       <= 1.2b                          *>= 1.2b-r1
     app-arch/unace       >= 2.0                           *>= 1.2b-r1

Description
===========

Ulf Harnhammar discovered that UnAce suffers from buffer overflows when
testing, unpacking or listing specially crafted ACE archives
(CAN-2005-0160). He also found out that UnAce is vulnerable to
directory traversal attacks, if an archive contains "./.." sequences or
absolute filenames (CAN-2005-0161).

Impact
======

An attacker could exploit the buffer overflows to execute malicious
code or the directory traversals to overwrite arbitrary files.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All UnAce users should upgrade to the latest available 1.2 version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-arch/unace-1.2b-r1"

References
==========

  [ 1 ] CAN-2005-0160
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0160
  [ 2 ] CAN-2005-0161
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0161

Availability
============

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200502-32.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
http://bugs.gentoo.org.

License
=======

Copyright 2005 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.

http://creativecommons.org/licenses/by-sa/2.0