Home

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.

PUBLISHED Reserved 2026-03-04 | Published 2026-03-07 | Updated 2026-03-07 | Assigner GitHub_M




MEDIUM: 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Problem types

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Product status

< 2.0.1
affected

References

github.com/...parser/security/advisories/GHSA-389r-rccm-h3h5

github.com/GOVCERT-LU/eml_parser/issues/88

github.com/...ommit/99af03a09a90aaaaadd0ed2ffb5eea46d1ea2cc9

cve.org (CVE-2026-29780)

nvd.nist.gov (CVE-2026-29780)

Download JSON