Debian Security Advisory

DSA-515-1 lha -- several vulnerabilities

Date Reported:
05 Jun 2004
Affected Packages:
lha
Vulnerable:
Yes
Security database references:
In the Bugtraq database (at SecurityFocus): BugTraq ID 10243.
In Mitre's CVE dictionary: CVE-2004-0234, CVE-2004-0235.
More information:

Two vulnerabilities were discovered in lha:

  • CAN-2004-0234 - Multiple stack-based buffer overflows in the get_header function in header.c for LHA 1.14 allow remote attackers or local users to execute arbitrary code via long directory or file names in an LHA archive, which triggers the overflow when testing or extracting the archive.
  • CAN-2004-0235 - Multiple directory traversal vulnerabilities in LHA 1.14 allow remote attackers or local users to create arbitrary files via an LHA archive containing filenames with (1) .. sequences or (2) absolute pathnames with double leading slashes ("//absolute/path").

For the current stable distribution (woody), these problems have been fixed in version 1.14i-2woody1.

For the unstable distribution (sid), these problems have been fixed in version 1.14i-8.

We recommend that you update your lha package.

Fixed in:

Debian GNU/Linux 3.0 (woody)

Source:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1.dsc
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1.diff.gz
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i.orig.tar.gz
Alpha:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_alpha.deb
ARM:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_arm.deb
Intel IA-32:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_i386.deb
Intel IA-64:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_ia64.deb
Motorola 680x0:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_m68k.deb
PowerPC:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_powerpc.deb
IBM S/390:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_s390.deb
Sun Sparc:
http://security.debian.org/pool/updates/non-free/l/lha/lha_1.14i-2woody1_sparc.deb

MD5 checksums of the listed files are available in the original advisory.