Advisory

PYSEC-2026-2148

Also known as: CVE-2026-29780, GHSA-389r-rccm-h3h5

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Dates

Published
2026-03-07 16:15 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

eml-parser

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.1 (ecosystem)

Fixed versions

2.0.1

Fix

  • Fixed version 2.0.1
    pip install --upgrade eml-parser==2.0.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences