Operating System:

Published:

02 September 2004

Protect yourself against future threats.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                     ESB-2004.0552 -- RHSA-2004:323-01
            An updated lha package fixes security vulnerability
                             2 September 2004

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:                lha
Publisher:              Red Hat
Operating System:       Red Hat Enterprise Linux AS/ES/WS 3
                        Red Hat Desktop version 3
Impact:                 Execute Arbitrary Code/Commands
Access:                 Existing Account
CVE Names:              CAN-2004-0769 CAN-2004-0771 CAN-2004-0694
                        CAN-2004-0745

- --------------------------BEGIN INCLUDED TEXT--------------------

- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- - ---------------------------------------------------------------------
                   Red Hat Security Advisory

Synopsis:          An updated lha package fixes security vulnerability
Advisory ID:       RHSA-2004:323-01
Issue date:        2004-09-01
Updated on:        2004-09-01
Product:           Red Hat Enterprise Linux
Obsoletes:         RHSA-2004:178
CVE Names:         CAN-2004-0769 CAN-2004-0771 CAN-2004-0694 CAN-2004-0745
- - ---------------------------------------------------------------------

1. Summary:

An updated lha package that fixes a buffer overflow is now available.

2. Relevant releases/architectures:

Red Hat Enterprise Linux AS version 3 - i386, ia64, ppc, s390, s390x, x86_64
Red Hat Desktop version 3 - i386, x86_64
Red Hat Enterprise Linux ES version 3 - i386, ia64, x86_64
Red Hat Enterprise Linux WS version 3 - i386, ia64, x86_64

3. Problem description:

LHA is an archiving and compression utility for LHarc format archives.

Lukasz Wojtow discovered a stack-based buffer overflow in all versions
of lha up to and including version 1.14.  A carefully created archive could
allow an attacker to execute arbitrary code when a victim extracts or tests
the archive.  The Common Vulnerabilities and Exposures project
(cve.mitre.org) has assigned the name CAN-2004-0769 to this issue.

Buffer overflows were discovered in the command line processing of all
versions of lha up to and including version 1.14.  If a malicious user
could trick a victim into passing a specially crafted command line to the
lha command, it is possible that arbitrary code could be executed.  The
Common Vulnerabilities and Exposures project (cve.mitre.org) has assigned
the names CAN-2004-0771 and CAN-2004-0694 to these issues.

Thomas Biege discovered a shell meta character command execution
vulnerability in all versions of lha up to and including 1.14.  An attacker
could create a directory with shell meta characters in its name which could
lead to arbitrary command execution.  The Common Vulnerabilities and
Exposures project (cve.mitre.org) has assigned the name CAN-2004-0745 to
this issue.

Users of lha should update to this updated package which contains
backported patches and is not vulnerable to these issues.

4. Solution:

Before applying this update, make sure that all previously-released
errata relevant to your system have been applied.  Use Red Hat
Network to download and update your packages.  To launch the Red Hat
Update Agent, use the following command:

    up2date

For information on how to install packages manually, refer to the
following Web page for the System Administration or Customization
guide specific to your system:

    http://www.redhat.com/docs/manuals/enterprise/

5. Bug IDs fixed (http://bugzilla.redhat.com/ for more info):

126740 - Buffer overflow in lha

6. RPMs required:

Red Hat Enterprise Linux AS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3AS/en/os/SRPMS/lha-1.14i-10.4.src.rpm
494aaceeb0afa3c661c6eb0981af1fd2  lha-1.14i-10.4.src.rpm

i386:
1d4d09649c91c742be78422fa746d93a  lha-1.14i-10.4.i386.rpm

ia64:
3d6b75954662f94459e0025599a4b7b8  lha-1.14i-10.4.ia64.rpm

ppc:
63a3f6ee8c97484d8c0f95423adcb74f  lha-1.14i-10.4.ppc.rpm

s390:
41c9148155410c09c6898cd971a873f8  lha-1.14i-10.4.s390.rpm

s390x:
2a2cd9f9ece25a0d885fb5079c608d6f  lha-1.14i-10.4.s390x.rpm

x86_64:
36bb4dbf784b15b7355548582f42a009  lha-1.14i-10.4.x86_64.rpm

Red Hat Desktop version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3desktop/en/os/SRPMS/lha-1.14i-10.4.src.rpm
494aaceeb0afa3c661c6eb0981af1fd2  lha-1.14i-10.4.src.rpm

i386:
1d4d09649c91c742be78422fa746d93a  lha-1.14i-10.4.i386.rpm

x86_64:
36bb4dbf784b15b7355548582f42a009  lha-1.14i-10.4.x86_64.rpm

Red Hat Enterprise Linux ES version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3ES/en/os/SRPMS/lha-1.14i-10.4.src.rpm
494aaceeb0afa3c661c6eb0981af1fd2  lha-1.14i-10.4.src.rpm

i386:
1d4d09649c91c742be78422fa746d93a  lha-1.14i-10.4.i386.rpm

ia64:
3d6b75954662f94459e0025599a4b7b8  lha-1.14i-10.4.ia64.rpm

x86_64:
36bb4dbf784b15b7355548582f42a009  lha-1.14i-10.4.x86_64.rpm

Red Hat Enterprise Linux WS version 3:

SRPMS:
ftp://updates.redhat.com/enterprise/3WS/en/os/SRPMS/lha-1.14i-10.4.src.rpm
494aaceeb0afa3c661c6eb0981af1fd2  lha-1.14i-10.4.src.rpm

i386:
1d4d09649c91c742be78422fa746d93a  lha-1.14i-10.4.i386.rpm

ia64:
3d6b75954662f94459e0025599a4b7b8  lha-1.14i-10.4.ia64.rpm

x86_64:
36bb4dbf784b15b7355548582f42a009  lha-1.14i-10.4.x86_64.rpm

These packages are GPG signed by Red Hat for security.  Our key and 
details on how to verify the signature are available from
https://www.redhat.com/security/team/key.html#package

7. References:

http://marc.theaimsgroup.com/?l=bugtraq&m=108668791510153
http://lw.ftw.zamosc.pl/lha-exploit.txt
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0769
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0771
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0694
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0745

8. Contact:

The Red Hat security contact is <secalert@redhat.com>.  More contact
details at https://www.redhat.com/security/team/contact.html

Copyright 2004 Red Hat, Inc.
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFBNjBDXlSAg2UNWIIRAv0OAKCvKE3Q3z16A9ZkAZkj65yC4KuPLQCdHXZd
cVZ7N+eXuSnX1tlcB1agJac=
=LBeY
- -----END PGP SIGNATURE-----

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBQTZRvSh9+71yA2DNAQIYBgP+OJ0XIXxLWe9HBenH0TRYutF3XEIuWm/q
NrZ7U3ZRzTNzck5WPX9Bn0j37ViF1I4GKJelPapauCroOuS47YpDTpPIKJdBrA+x
hcySWPfPQYVLfa5CA/UiAKx7XF4B0rsK5vVrcRMMMSek3/TtJWdNtHDkEOHNkZtS
TOyJFcRLzgA=
=yjrr
-----END PGP SIGNATURE-----