The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-29780

CVE-2026-29780: Eml Parser Path Traversal Vulnerability

CVE-2026-29780 is a path traversal vulnerability in Govcert.lu Eml Parser that allows arbitrary file writes outside intended directories. This article covers the technical details, affected versions, and mitigation steps.

Published: March 13, 2026

CVE-2026-29780 Overview

CVE-2026-29780 is a path traversal vulnerability affecting the eml_parser Python module, a popular library developed by GOVCERT-LU for parsing EML (email) files and extracting various information. Prior to version 2.0.1, the official example script examples/recursively_extract_attachments.py contains a path traversal flaw that allows arbitrary file write operations outside the intended output directory.

The vulnerability exists because attachment filenames extracted from parsed emails are directly used to construct output file paths without any sanitization. This allows an attacker who controls the email attachment filename to escape the target directory and write files to arbitrary locations on the filesystem.

Critical Impact

Attackers can craft malicious email files with specially crafted attachment filenames containing directory traversal sequences (e.g., ../) to write arbitrary files anywhere on the system where the user running the script has write permissions, potentially leading to code execution or system compromise.

Affected Products

  • govcert.lu eml_parser versions prior to 2.0.1
  • Python applications using the vulnerable recursively_extract_attachments.py example script
  • Systems processing untrusted EML files with the affected script

Discovery Timeline

  • 2026-03-07 - CVE CVE-2026-29780 published to NVD
  • 2026-03-11 - Last updated in NVD database

Technical Details for CVE-2026-29780

Vulnerability Analysis

This path traversal vulnerability (CWE-22) allows attackers to write files outside the intended output directory when processing malicious email files. The vulnerability resides specifically in the examples/recursively_extract_attachments.py script included with the eml_parser package.

When the script extracts attachments from parsed emails, it uses the attachment filename directly from the email metadata to construct the output path. Since email attachment filenames are attacker-controlled, a malicious actor can embed directory traversal sequences such as ../ within the filename. These sequences allow the final write path to escape the designated output directory and target arbitrary filesystem locations.

The attack requires local access and user interaction (the victim must process a malicious EML file), but once triggered, the attacker gains high-integrity impact through arbitrary file write capabilities.

Root Cause

The root cause is improper input validation and path handling in the example script. The vulnerable code constructs file paths using user-controlled input (email attachment filenames) without resolving or validating that the resulting path remains within the intended output directory boundary.

The pathlib.Path objects for both scan_path and out_path were not resolved to their absolute canonical forms, allowing relative path components like .. to traverse outside the intended directory structure.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious EML file containing an attachment with a filename that includes path traversal sequences. When a victim processes this email using the vulnerable script, the attachment is written to an attacker-controlled location.

For example, an attachment named ../../../etc/cron.d/malicious_job would escape the output directory and write to the system cron directory (if permissions allow), potentially achieving code execution.

The attack vector is local (requires the victim to process the malicious file) with no special privileges required, though user interaction is necessary.

python
# Security patch for path traversal vulnerability
# Source: https://github.com/GOVCERT-LU/eml_parser/commit/99af03a09a90aaaaadd0ed2ffb5eea46d1ea2cc9

# Before (vulnerable):
-    scan_path = pathlib.Path(options.path)
-    out_path = pathlib.Path(options.outpath)

# After (fixed):
+    scan_path = pathlib.Path(options.path).resolve()
+    out_path = pathlib.Path(options.outpath).resolve()

     if not scan_path.is_dir():
         raise SystemExit('Specified path is not accessible')

Source: GitHub Commit Update

Detection Methods for CVE-2026-29780

Indicators of Compromise

  • Email attachments with filenames containing ../ or ..\\ path traversal sequences
  • Unexpected file creation or modification in directories outside the designated output path
  • Log entries showing file write operations to sensitive system directories during EML processing
  • Presence of files in unexpected locations matching attachment processing timestamps

Detection Strategies

  • Implement file integrity monitoring (FIM) on sensitive directories to detect unauthorized file writes
  • Monitor for email files containing suspicious attachment filenames with path traversal patterns
  • Deploy application-level logging to track file write operations during EML parsing activities
  • Use YARA rules to scan incoming EML files for attachments with malicious filename patterns

Monitoring Recommendations

  • Enable detailed logging for any applications using eml_parser to process external email files
  • Configure alerts for file write operations that target directories outside expected output paths
  • Monitor Python process activity for suspicious file system access patterns
  • Review processed email logs for attachment filenames containing directory traversal sequences

How to Mitigate CVE-2026-29780

Immediate Actions Required

  • Upgrade eml_parser to version 2.0.1 or later immediately
  • Audit any custom scripts based on the vulnerable example for similar path traversal issues
  • Review file systems for evidence of exploitation if the vulnerable script was used in production
  • Restrict permissions on sensitive directories to limit potential impact

Patch Information

The vulnerability has been patched in eml_parser version 2.0.1. The fix applies the .resolve() method to both scan_path and out_path variables, converting relative paths to their absolute canonical forms. This prevents path traversal sequences from escaping the intended directory.

For detailed patch information, refer to the GitHub Security Advisory GHSA-389r-rccm-h3h5 and the GitHub Commit Update.

Workarounds

  • If immediate upgrade is not possible, manually apply the .resolve() fix to the example script
  • Process EML files in an isolated environment or container with restricted filesystem access
  • Implement additional filename sanitization that strips or rejects path traversal characters before file creation
  • Run the parsing script under a restricted user account with minimal write permissions
bash
# Upgrade eml_parser to patched version
pip install --upgrade eml_parser>=2.0.1

# Verify installed version
pip show eml_parser | grep Version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechGovcert.lu Eml Parser

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Issue Tracker Entry
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-389r-rccm-h3h5
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English