CVE-2026-129296 mail-parser: Path Traversal vulnerability in attachment extraction
MediumCVSS 6.5
- Published
- Updated
- Exploit status
- No public exploit known
Description
mail-parser is a tool that parses emails by enhancing the Python standard library and extracting message details into a comprehensive object. From 3.8.0 until 4.6.0, the write_attachments() and write_sample() APIs use attacker-controlled attachment filenames without sufficient sanitization and path containment validation. Directory traversal sequences and absolute filesystem paths can cause an attachment to be written outside the intended output directory. An attacker can overwrite files accessible to the parsing process when an application extracts attachments from a crafted message. This issue is fixed in version 4.6.0.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| SpamScope mail-parser | = >= 3.8.0, < 4.6.0 | No fix listed |
| pypi mail-parser(PyPI) | >= 3.8.0, < 4.6.0 | 4.6.0 |
| pypi mail-parser(PyPI) | = 3.10.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.11.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.12.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.13.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.14.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.15.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.8.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.8.1 | No fix listed |
| pypi mail-parser(PyPI) | = 3.9.0 | No fix listed |
| pypi mail-parser(PyPI) | = 3.9.1 | No fix listed |
| pypi mail-parser(PyPI) | = 3.9.2 | No fix listed |
| pypi mail-parser(PyPI) | = 3.9.3 | No fix listed |
| pypi mail-parser(PyPI) | = 4.0.0 | No fix listed |
| pypi mail-parser(PyPI) | = 4.1.0 | No fix listed |
| pypi mail-parser(PyPI) | = 4.1.2 | No fix listed |
| pypi mail-parser(PyPI) | = 4.1.3 | No fix listed |
| pypi mail-parser(PyPI) | = 4.1.4 | No fix listed |
| pypi mail-parser(PyPI) | = 4.2.0 | No fix listed |
| pypi mail-parser(PyPI) | = 4.2.1 | No fix listed |
| pypi mail-parser(PyPI) | = 4.3.0 | No fix listed |
| pypi mail-parser(PyPI) | = 4.4.0 | No fix listed |
| pypi mail-parser(PyPI) | = 4.5.0 | No fix listed |
References
- https://github.com/SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9496 vendor-advisory
- https://github.com/SpamScope/mail-parser/pull/165 patch
- https://github.com/SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5d56f29fefe8 patch
- https://github.com/SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e935a9dacd1d patch
- https://github.com/SpamScope/mail-parser/releases/tag/4.6.0
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product