Gentoo: UnRTF Buffer overflow
Posted by Joe Shakespeare   
Gentoo A buffer overflow in UnRTF allows an attacker to execute arbitrary code by way of a specially crafted RTF file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200501-15
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: UnRTF: Buffer overflow
      Date: January 10, 2005
      Bugs: #74480
        ID: 200501-15

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

Synopsis
========

A buffer overflow in UnRTF allows an attacker to execute arbitrary code
by way of a specially crafted RTF file.

Background
==========

UnRTF is a utility to convert files in the Rich Text Format into other
formats.

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

    -------------------------------------------------------------------
     Package         /   Vulnerable   /                     Unaffected
    -------------------------------------------------------------------
  1  app-text/unrtf      < 0.19.3-r1                      >= 0.19.3-r1

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

An unchecked strcat() in unrtf may overflow the bounds of a static
buffer.

Impact
======

Using a specially crafted file, possibly delivered by e-mail or over
the web, an attacker may execute arbitrary code with the permissions of
the user running UnRTF.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All unrtf users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=app-text/unrtf-0.19.3-r1"

References
==========

  [ 1 ] Original Announcement
        http://tigger.uic.edu/~jlongs2/holes/unrtf.txt

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

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

  http://security.gentoo.org/glsa/glsa-200501-15.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