CVE-2001-0700
Description
Buffer overflow in w3m 0.2.1 and earlier allows a remote attacker to execute arbitrary code via a long base64 encoded MIME header.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
Root cause
"A buffer overflow vulnerability exists in the w3m client program due to improper handling of long base64 encoded MIME headers."
Attack vector
A remote attacker can exploit this vulnerability by sending a crafted MIME header containing a base64 encoded string exceeding approximately 32 characters in length [ref_id=1]. When the w3m client processes this malformed header, it can lead to a buffer overflow. This overflow may allow the attacker to execute arbitrary code on the user's system [ref_id=1]. The exploit involves a fake HTTP server sending a malicious MIME header to the victim's w3m client [ref_id=1].
Affected code
The vulnerability lies within the 'w3m' client program, specifically in how it handles base64 encoded strings within MIME header fields. The overflow occurs when processing a string that exceeds approximately 32 characters [ref_id=1]. The provided exploit script targets this by constructing a malicious MIME header with a long base64 encoded string to trigger the buffer overflow [ref_id=1].
What the fix does
The advisory does not specify a patch or provide details on how the vulnerability was fixed. However, it indicates that the vulnerability is present in w3m versions 0.2.1 and earlier. Users are advised to upgrade to a patched version once available. The provided exploit script demonstrates a method to trigger the overflow by sending a long base64 encoded string in a MIME header [ref_id=1].
Preconditions
- inputThe user must interact with a malicious server or be sent a specially crafted email/web page containing a long base64 encoded MIME header.
- networkThe attacker needs to be able to send network traffic to the victim's w3m client, typically via a malicious web server or email server.
Reproduction
The provided reference includes a Perl script that acts as a fake HTTP server to deliver the exploit. This script listens on a port, accepts connections from a victim's w3m client, and sends a crafted HTTP response with a malicious MIME header designed to trigger the buffer overflow and execute shellcode [ref_id=1].
Generated on Jun 2, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- mi.med.tohoku.ac.jp/~satodai/w3m-dev-en/200106.month/537.htmlnvdPatchVendor Advisory
- www.securityfocus.com/bid/2895nvdExploitPatchVendor Advisory
- distro.conectiva.com.br/atualizacoes/nvd
- www.debian.org/security/2001/dsa-064nvd
- www.debian.org/security/2001/dsa-081nvd
- www.securityfocus.com/archive/1/192371nvd
- exchange.xforce.ibmcloud.com/vulnerabilities/6725nvd
News mentions
0No linked articles in our index yet.