# CVE-2026-29780: eml_parser: Path Traversal in Official Example Script Leading to Arbitrary File Write

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-05T00:16:57.000Z
- Modified: 2026-07-13T07:26:20.432Z
- Also known as: GHSA-389r-rccm-h3h5, PYSEC-2026-2148
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- GOVCERT-LU eml_parser: < 2.0.1
- eml-parser (PyPI): before 2.0.1
- govcert.lu eml_parser: before 2.0.1

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`

## References

- <https://github.com/GOVCERT-LU/eml_parser/security/advisories/GHSA-389r-rccm-h3h5> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://github.com/GOVCERT-LU/eml_parser/issues/88> (issue-tracking, report, web)
- <https://github.com/GOVCERT-LU/eml_parser/commit/99af03a09a90aaaaadd0ed2ffb5eea46d1ea2cc9> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29780> (advisory)
- <https://github.com/GOVCERT-LU/eml_parser> (package)

## Sources

- CVE List: [CVE-2026-29780](https://www.cve.org/CVERecord?id=CVE-2026-29780), CVE Terms of Use, modified 2026-03-09
- GitHub Advisory Database: [GHSA-389r-rccm-h3h5](https://github.com/advisories/GHSA-389r-rccm-h3h5), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-29780](https://nvd.nist.gov/vuln/detail/CVE-2026-29780), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2148](https://osv.dev/vulnerability/PYSEC-2026-2148), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-29780 · Whole record: https://cve.day/CVE-2026-29780.json · Rebuilt by cve.day 2026-11-25T22:59:15.474Z
