Vulnerability · Published Mar 7, 2026 · Assigned by GitHub_M
CVE-2026-29780eml_parser: Path Traversal in Official Example Script Leading to Arbitrary File Write
Medium 5.5
In plain English
A medium-severity path traversal in eml_parser from GOVCERT-LU. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | eml-parser | 2.0.1 | GHSA-389r-rccm-h3h5 |
| PyPI | eml-parser | 2.0.1 | PYSEC-2026-2148 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| GOVCERT-LU | eml_parser | < 2.0.1 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N