__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN LHA Packages Buffer Overflow Vulnerability [Red Hat: RHSA-2004-323] September 3, 2004 17:00 GMT Number O-210 [REVISED 07 Sep 2004] ______________________________________________________________________________ PROBLEM: LHA is an archiving and compression utility for LHarc format archives. A stack-based buffer overflow vulnerabitlity was found in all versions of LHA 1.14 and earlier. PLATFORM: Red Hat Enterprise Linux AS, ES, and WS v.3 Red Hat Enterprise Linux AS, ES, and WS v.2.1 Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor DAMAGE: Carefully created archives, or directories with shell meta characters in its name, could allow an attacker to possibly execute arbitrary code. SOLUTION: Install updated LHA packages. ______________________________________________________________________________ VULNERABILITY The risk is MEDIUM. An attacker could execute arbitrary code. ASSESSMENT: There's no information at this time that indicates an attacker could get root access. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/o-210.shtml ORIGINAL BULLETIN: https://rhn.redhat.com/errata/RHSA-2004-323.html ADDITIONAL LINK: https://rhn.redhat.com/errata/RHSA-2004-440.html CVE/CAN: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CAN-2004-0694 CAN-2004-0745 CAN-2004-0769 CAN-2004-0771 ______________________________________________________________________________ REVISION HISTORY: 09/07/2004 - added link to Red Hat Security Advisory RHSA-2004:440-04, providing updated packages for this vulnerability. [***** Start Red Hat: RHSA-2004-323 *****] An updated lha package fixes security vulnerability Advisory: RHSA-2004:323-09 Last updated on: 2004-09-01 Affected Products: Red Hat Desktop (v. 3) Red Hat Enterprise Linux AS (v. 3) Red Hat Enterprise Linux ES (v. 3) Red Hat Enterprise Linux WS (v. 3) CVEs (cve.mitre.org): CAN-2004-0694 CAN-2004-0745 CAN-2004-0769 CAN-2004-0771 Security Advisory Details: An updated lha package that fixes a buffer overflow is now available. 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. Updated packages: Red Hat Desktop (v. 3) ----------------------------------------------------------------------------- AMD64: lha-1.14i-10.4.x86_64.rpm 36bb4dbf784b15b7355548582f42a009 SRPMS: lha-1.14i-10.4.src.rpm 494aaceeb0afa3c661c6eb0981af1fd2 i386: lha-1.14i-10.4.i386.rpm 1d4d09649c91c742be78422fa746d93a Red Hat Enterprise Linux AS (v. 3) ----------------------------------------------------------------------------- AMD64: lha-1.14i-10.4.x86_64.rpm 36bb4dbf784b15b7355548582f42a009 SRPMS: lha-1.14i-10.4.src.rpm 494aaceeb0afa3c661c6eb0981af1fd2 i386: lha-1.14i-10.4.i386.rpm 1d4d09649c91c742be78422fa746d93a ia64: lha-1.14i-10.4.ia64.rpm 3d6b75954662f94459e0025599a4b7b8 ppc: lha-1.14i-10.4.ppc.rpm 63a3f6ee8c97484d8c0f95423adcb74f s390: lha-1.14i-10.4.s390.rpm 41c9148155410c09c6898cd971a873f8 s390x: lha-1.14i-10.4.s390x.rpm 2a2cd9f9ece25a0d885fb5079c608d6f Red Hat Enterprise Linux ES (v. 3) ----------------------------------------------------------------------------- AMD64: lha-1.14i-10.4.x86_64.rpm 36bb4dbf784b15b7355548582f42a009 SRPMS: lha-1.14i-10.4.src.rpm 494aaceeb0afa3c661c6eb0981af1fd2 i386: lha-1.14i-10.4.i386.rpm 1d4d09649c91c742be78422fa746d93a ia64: lha-1.14i-10.4.ia64.rpm 3d6b75954662f94459e0025599a4b7b8 Red Hat Enterprise Linux WS (v. 3) ----------------------------------------------------------------------------- AMD64: lha-1.14i-10.4.x86_64.rpm 36bb4dbf784b15b7355548582f42a009 SRPMS: lha-1.14i-10.4.src.rpm 494aaceeb0afa3c661c6eb0981af1fd2 i386: lha-1.14i-10.4.i386.rpm 1d4d09649c91c742be78422fa746d93a ia64: lha-1.14i-10.4.ia64.rpm 3d6b75954662f94459e0025599a4b7b8 (The unlinked packages above are only available from the Red Hat Network) 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/ Bugs fixed: (see bugzilla for more information) 126740 - Buffer overflow in lha References: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0694 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0745 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://marc.theaimsgroup.com/?l=bugtraq&m=108668791510153 http://lw.ftw.zamosc.pl/lha-exploit.txt ----------------------------------------------------------------------------- The listed packages are GPG signed by Red Hat, Inc. for security. Our key is available at: http://www.redhat.com/solutions/security/news/publickey/#key You can verify each package and see who signed it with the following command: rpm --checksig -v filename If you only wish to verify that each package has not been corrupted or tampered with, examine only the md5sum with the following command: md5sum filename The Red Hat security contact is security@redhat.com. More contact details at http://www.redhat.com/solutions/security/news/contact.html Copyright © 2002 Red Hat, Inc. All rights reserved. [***** End Red Hat: RHSA-2004-323 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat, Inc. for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) O-200: Updated PAM Packages O-201: Qt Package Vulnerabilities O-202: Buffer Overflow in the CDE Mailer dtmail(1X) O-203: Cisco Secure Access Control Server Vulnerabilities O-204: Netscape NSS Library Suite Remote Buffer Overflow O-205: Adobe Acrobat Reader Uuencoding Buffer Overflow O-206: Entrust LibKmp Library Vulnerabilities O-207: Cisco IOS Telnet Denial of Service Vulnerability O-208: Kerberos krb5 Vulnerabilities O-209: Oracle Database Server Vulnerabilities