vendor:
LHA
by:
Lukasz Wojtow
7.5
CVSS
HIGH
Arbitrary Code Execution, File Corruption
119
CWE
Product Name: LHA
Affected Version From: LHA 1.14
Affected Version To: LHA 1.14
Patch Exists: NO
Related CWE:
CPE: a:lha_project:lha:1.14
Platforms Tested: Linux
2004
LHA Multiple Vulnerabilities
The vulnerabilities in LHA allow a malicious archive to execute arbitrary code or corrupt arbitrary files when the archive is operated on. These issues are triggered in the 'extract_one()' function due to a failure of the application to properly validate string lengths in offending files. The exploit code provided creates an archive that, when decompressed with LHA-1.14, will cause a buffer overflow. The exploit utilizes the return-into-libc technique to execute system commands and exit. Specific addresses for the system function, exit function, and /tmp/lhXXXXXX string inside the exploit binary need to be obtained and placed in the code in little endian order.
Mitigation:
Upgrade to a patched version of LHA or use alternative archiving utilities.