ID CVE-2004-0771
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:tsugio_okamoto:lha:1.14
    cpe:2.3:a:tsugio_okamoto:lha:1.14
  • cpe:2.3:a:tsugio_okamoto:lha:1.15
    cpe:2.3:a:tsugio_okamoto:lha:1.15
  • cpe:2.3:a:tsugio_okamoto:lha:1.17
    cpe:2.3:a:tsugio_okamoto:lha:1.17
CVSS
Base: 10.0 (as of 01-01-2004 - 00:00)
Impact:
Exploitability:
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
exploit-db via4
description LHA 1.x Multiple extract_one Buffer Overflow Vulnerabilities. CVE-2004-0771. Remote exploit for linux platform
id EDB-ID:24120
last seen 2016-02-02
modified 2004-05-19
published 2004-05-19
reporter Lukasz Wojtow
source https://www.exploit-db.com/download/24120/
title LHA 1.x - Multiple extract_one Buffer Overflow Vulnerabilities
nessus via4
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_LHA_114_6.NASL
    description The following package needs to be updated: lha
    last seen 2016-09-26
    modified 2011-10-03
    plugin id 14813
    published 2004-09-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=14813
    title FreeBSD : lha -- numerous vulnerabilities when extracting archives (91)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2004-323.NASL
    description 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 CVE-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 CVE-2004-0771 and CVE-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 CVE-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.
    last seen 2019-02-21
    modified 2018-11-27
    plugin id 14625
    published 2004-09-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=14625
    title RHEL 3 : lha (RHSA-2004:323)
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2004-440.NASL
    description 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 CVE-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 can 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 CVE-2004-0771 and CVE-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 CVE-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.
    last seen 2019-02-21
    modified 2018-11-27
    plugin id 14697
    published 2004-09-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=14697
    title RHEL 2.1 : lha (RHSA-2004:440)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_273CC1A30D6B11D98A8A000C41E2CDAD.NASL
    description Source code reviews of lha by Lukasz Wojtow, Thomas Biege, and others uncovered a number of vulnerabilities affecting lha : - Buffer overflows when handling archives and filenames. (CVE-2004-0694) - Possible command execution via shell meta-characters when built with NOMKDIR. (CVE-2004-0745) - Buffer overflow resulting in arbitrary code execution when handling long pathnames in LHZ archives. (CVE-2004-0769) - Buffer overflow in the extract_one. (CVE-2004-0771)
    last seen 2019-02-21
    modified 2018-11-21
    plugin id 37618
    published 2009-04-23
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=37618
    title FreeBSD : lha -- numerous vulnerabilities when extracting archives (273cc1a3-0d6b-11d9-8a8a-000c41e2cdad)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200409-13.NASL
    description The remote host is affected by the vulnerability described in GLSA-200409-13 (LHa: Multiple vulnerabilities) The command line argument as well as the archive parsing code of LHa lack sufficient bounds checking. Furthermore, a shell meta character command execution vulnerability exists in LHa, since it does no proper filtering on directory names. Impact : Using a specially crafted command line argument or archive, an attacker can cause a buffer overflow and could possibly run arbitrary code. The shell meta character command execution could lead to the execution of arbitrary commands by an attacker using directories containing shell meta characters in their names. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-08-10
    plugin id 14694
    published 2004-09-09
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=14694
    title GLSA-200409-13 : LHa: Multiple vulnerabilities
oval via4
accepted 2013-04-29T04:20:31.659-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 3
    oval oval:org.mitre.oval:def:11782
  • comment CentOS Linux 3.x
    oval oval:org.mitre.oval:def:16651
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.
family unix
id oval:org.mitre.oval:def:9595
status accepted
submitted 2010-07-09T03:56:16-04:00
title 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.
version 23
redhat via4
advisories
  • rhsa
    id RHSA-2004:323
  • rhsa
    id RHSA-2004:440
refmap via4
bid 10354
bugtraq
  • 20040515 lha buffer overflow(s) again
  • 20040606 Re: [SECURITY] [DSA 515-1] New lha packages fix several
fedora FLSA:1833
gentoo GLSA-200409-13
misc http://bugs.gentoo.org/show_bug.cgi?id=51285
xf lha-extractone-bo(16196)
Last major update 17-10-2016 - 22:48
Published 23-11-2004 - 00:00
Last modified 10-10-2017 - 21:29
Back to Top