Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-29780: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GOVCERT-LU eml_parser

0
Medium
VulnerabilityCVE-2026-29780cvecve-2026-29780cwe-22
Published: Sat Mar 07 2026 (03/07/2026, 15:22:43 UTC)
Source: CVE Database V5
Vendor/Project: GOVCERT-LU
Product: eml_parser

Description

eml_parser serves as a python module for parsing eml files and returning various information found in the e-mail as well as computed information. Prior to version 2.0.1, the official example script examples/recursively_extract_attachments.py contains a path traversal vulnerability that allows arbitrary file write outside the intended output directory. Attachment filenames extracted from parsed emails are directly used to construct output file paths without any sanitization, allowing an attacker-controlled filename to escape the target directory. This issue has been patched in version 2.0.1.

AI-Powered Analysis

AILast updated: 03/07/2026, 15:46:10 UTC

Technical Analysis

The eml_parser Python module, developed by GOVCERT-LU, is designed to parse .eml email files and extract various information, including attachments. Prior to version 2.0.1, the example script recursively_extract_attachments.py demonstrates a path traversal vulnerability (CWE-22) due to improper sanitization of attachment filenames. When parsing emails, the script directly uses the attachment filenames to construct output paths without validating or normalizing them. An attacker can craft an email with malicious attachment filenames containing directory traversal sequences (e.g., '../') to escape the intended output directory and write files arbitrarily anywhere the executing user has write permissions. This can lead to overwriting critical files or planting malicious files on the system. The vulnerability requires the victim to run the vulnerable script on a crafted email file, thus involving user interaction. The CVSS v3.1 base score is 5.5 (medium severity), reflecting the local attack vector, low complexity, no privileges required, but requiring user interaction. The impact is primarily on integrity, as arbitrary files can be overwritten, potentially leading to code execution or data corruption. The vulnerability was responsibly disclosed and patched in version 2.0.1 by adding proper filename sanitization and path normalization to prevent directory traversal. No public exploits or widespread attacks have been reported to date.

Potential Impact

This vulnerability allows an attacker to write arbitrary files outside the intended output directory when processing maliciously crafted email files. For organizations using the vulnerable eml_parser versions, this can lead to unauthorized modification or replacement of critical files, potentially enabling further exploitation such as privilege escalation, persistence, or disruption of normal operations. Although the attack requires user interaction (running the vulnerable script on a malicious email), the risk is significant in environments where automated or semi-automated email processing occurs, such as email security gateways, forensic tools, or malware analysis platforms. The integrity of systems can be compromised, and in some cases, confidentiality could be indirectly affected if sensitive files are overwritten or replaced. The vulnerability does not directly impact availability but could lead to denial of service if critical files are corrupted. Since the vulnerability is local and requires user action, the scope is limited but still relevant for organizations relying on eml_parser for email processing.

Mitigation Recommendations

1. Upgrade to eml_parser version 2.0.1 or later, where the path traversal vulnerability is patched with proper filename sanitization and path normalization. 2. If upgrading is not immediately possible, avoid using the vulnerable example script recursively_extract_attachments.py or any custom scripts that write attachment files without sanitizing filenames. 3. Implement strict input validation and sanitization on all filenames extracted from untrusted email sources, removing or neutralizing directory traversal sequences and invalid characters. 4. Run email parsing and attachment extraction processes with the least privileges necessary, restricting write permissions to dedicated directories to limit the impact of arbitrary file writes. 5. Employ monitoring and alerting for unexpected file modifications in critical directories. 6. Educate users and administrators about the risks of processing untrusted email files and encourage cautious handling of email attachments. 7. Consider sandboxing or containerizing email parsing tools to isolate potential damage from exploitation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-03-04T16:26:02.898Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69ac44bec48b3f10ffa88854

Added to database: 3/7/2026, 3:31:10 PM

Last enriched: 3/7/2026, 3:46:10 PM

Last updated: 3/8/2026, 4:12:00 AM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses