CVE-2009-3721: Path Traversal
Multiple directory traversal and buffer overflow vulnerabilities were discovered in yTNEF, and in Evolution's TNEF parser that is derived from yTNEF. A crafted email could cause these applications to write data in arbitrary locations on the filesystem, crash, or potentially execute arbitrary code when decoding attachments.
Other sources
Yorick Koster discovered multiple security issues in yTNEF and Evolution's TNEF plugin (based on yTNEF), which are described in oCERT-2009-013 advisory:
http://www.ocert.org/advisories/ocert-2009-013.html
yTNEF, an open source filter program that decodes Transport Neutral Encapsulation Format (TNEF) e-mail attachments, and the Evolution TNEF attachment decoder plugin suffer from directory traversal and buffer overflow vulnerabilities.
The vulnerabilities lead to arbitrary code execution with the privilege of the target user running the decoders.
The directory traversal vulnerability is caused by improper sanitization of the file name used for saving the attachments, as it is computed directly from properties contained in the TNEF structure without checking for conditions that allow to traverse outside the temporary directory used for attachment storage. This leads to arbitrary code execution in case the attacker crafts an attachment that would overwrite a file used for execution (as an example the bashrc profile).
Additionally buffer and heap overflow vulnerabilities can be triggered by passing a file name exceeding a fixed size of 256 bytes in the TNEF data structure. This can lead to arbitrary code execution if exploited.
Further details can be found in Yorick's advisory: http://www.akitasecurity.nl/advisory.php?id=AK20090601
There's no official upstream fix for the issues. Both yTNEF and Evolution's TNEF plugin are unmaintained according to oCERT's advisory.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2009-3721?
CVE-2009-3721 is considered a critical vulnerability due to its potential to allow remote code execution and system crashes.
How do I fix CVE-2009-3721?
To remediate CVE-2009-3721, upgrade yTNEF to version 2.8 or later, and ensure that GNOME Evolution is also updated.
What applications are affected by CVE-2009-3721?
CVE-2009-3721 affects the yTNEF library and the Evolution email client’s TNEF parser.
Can CVE-2009-3721 lead to data loss?
Yes, CVE-2009-3721 can result in data loss as it may write data to arbitrary locations on the filesystem.
Is CVE-2009-3721 a common vulnerability?
CVE-2009-3721 is not common but has significant implications for users of affected software if not mitigated.