Description
Buffer overflow in the extract_one function from lhext.c in LHA may allow attackers to execute arbitrary code via a long w (working directory) command line option, a different issue than CVE-2004-0769. NOTE: this issue may be REJECTED if there are not any cases in which LHA is setuid or is otherwise used across security boundaries.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 3 | lha | 1.14i-10.4 | RHSA-2004:323 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- LHA 1.x - 'extract_one' Multiple Buffer Overflow Vulnerabilities EDB-24120 · remote · May 19, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- RHSA-2004:323 Red Hat Security Advisory: lha security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
References
- RHSA-2004:323 vendor-advisory
- 10354 vdb-entry
- http://bugs.gentoo.org/show_bug.cgi?id=51285
- oval:org.mitre.oval:def:9595 vdb-entry signature
- lha-extractone-bo(16196) vdb-entry
- 20040515 lha buffer overflow(s) again mailing-list
- FLSA:1833 vendor-advisory
- GLSA-200409-13 vendor-advisory
- RHSA-2004:440 vendor-advisory
- 20040606 Re: [SECURITY] [DSA 515-1] New lha packages fix several mailing-list