LHA long pathname buffer overflow
| lha-long-pathname-bo (16917) |
Description:
LHA is vulnerable to a buffer overflow via the l and v options. A remote attacker could create a specially-crafted .LHZ archive with a long pathname to overflow a buffer and execute arbitrary code on the system.
Consequences:
Gain Access
Remedy:
For Red Hat Linux:
Upgrade to the latest lha package, as listed below. Refer to RHSA-2004:323-09 and RHSA-2004:440-04 for more information. See References.
Red Hat Enterprise Linux AS (v. 3), ES (v. 3), WS (v. 3), Desktop: 1.14i-10.4.x86_64 or later
Red Hat Enterprise Linux AS (v. 2.1), ES (v. 2.1), WS (v. 2.1), and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor: 1.00-17.3 or later
As a workaround, apply the unofficial patch, available from the BugTraq Mailing List, Tue Jun 15 2004 - 19:57:51 CDT. See References.
For Gentoo Linux:
Upgrade to the latest version of lha (114i-r4 or later), as listed in GLSA 200409-13. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
References:
- BugTraq Mailing List, Tue Jun 15 2004 - 19:57:51 CDT: Re: [SECURITY] [DSA 515-1] New lha packages fix several vulnerabilities; Re:.
- CIAC Information Bulletin 0-210: LHA Packages Buffer Overflow Vulnerability.
- BID-11093: LHA Multiple Code Execution Vulnerabilities
- CVE-2004-0769: Buffer overflow in LHA allows remote attackers to execute arbitrary code via long pathnames in LHarc format 2 headers for a .LHZ archive, as originally demonstrated using the x option but also exploitable through l and v, and fixed in header.c, a different issue than CVE-2004-0771.
- GLSA-200409-13: LHa: Multiple vulnerabilities
- RHSA-2004-323: lha security update
- RHSA-2004-440: lha security update
Platforms Affected:
- Gentoo Linux
- RedHat Enterprise Linux 2.1 WS
- RedHat Enterprise Linux 2.1 ES
- RedHat Enterprise Linux 2.1 AW
- RedHat Enterprise Linux 2.1 AS
- RedHat Enterprise Linux 3 WS
- RedHat Enterprise Linux 3 ES
- RedHat Enterprise Linux 3 Desktop
- RedHat Enterprise Linux 3 AS
- RedHat Linux Advanced Workstation 2.1 Itanium
- Tsugio Okamoto LHA
Reported:
Jun 15, 2004
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
