CVE-2004-0234 in F-Secureinfo

Summary

by MITRE

Multiple stack-based buffer overflows in the get_header function in header.c for LHA 1.14, as used in products such as Barracuda Spam Firewall, 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.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 07/13/2025

The vulnerability described in CVE-2004-0234 represents a critical stack-based buffer overflow affecting the LHA compression utility version 1.14 and its implementations within various security products including the Barracuda Spam Firewall. This flaw exists within the get_header function located in the header.c source file, where insufficient input validation permits maliciously crafted archive files to trigger memory corruption during archive processing operations. The vulnerability specifically targets the handling of directory and file names within LHA archives, making it particularly dangerous in environments where users might encounter untrusted archive content.

The technical implementation of this vulnerability stems from improper bounds checking when processing archive headers, particularly during the extraction or testing phases of LHA archives. When an attacker crafts an archive containing excessively long directory or file names, the get_header function fails to properly validate the length of these strings before copying them into fixed-size stack buffers. This fundamental flaw allows attackers to overwrite adjacent stack memory, potentially corrupting program execution flow and enabling arbitrary code execution. The vulnerability manifests during normal archive operations, making it exploitable both remotely through network-based attacks and locally through direct file manipulation.

The operational impact of this vulnerability extends beyond simple code execution, as it provides attackers with significant control over affected systems. Remote attackers can leverage this vulnerability to execute malicious code with the privileges of the affected application, potentially leading to complete system compromise. Local users with access to create or modify LHA archives can also exploit this weakness to gain unauthorized code execution privileges. The vulnerability affects not only the core LHA utility but also products that incorporate it, such as the Barracuda Spam Firewall, which may expose organizations to additional attack vectors through email filtering systems. This makes the vulnerability particularly concerning for enterprise environments where spam filtering systems process untrusted content from external sources.

Mitigation strategies for CVE-2004-0234 should prioritize immediate patching of affected systems and implementations, as the vulnerability has been widely exploited in the past. Organizations should implement strict input validation measures for all archive processing operations, including length restrictions on file and directory names within compressed archives. Network segmentation and access controls can help limit potential exploitation pathways, while monitoring systems should be configured to detect unusual archive processing activities. The vulnerability aligns with CWE-121 stack-based buffer overflow classification and represents a typical attack vector categorized under ATT&CK technique T1059.007 for command and script injection, making it a critical target for defensive security measures. Regular security assessments and vulnerability scanning should include checks for outdated LHA implementations, particularly in legacy systems where patching may not be immediately feasible.

Reservation

03/17/2004

Disclosure

08/18/2004

Moderation

accepted

Entry

VDB-22118

CPE

ready

Exploit

Download

EPSS

0.10262

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!