A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /SpamScope/mail-parser/commit/3d6cb7a51f2ad7ea57e529121dbd5…
- github.com /SpamScope/mail-parser/commit/b0a2e968815f3ed9e129efb0f5f7e…
- github.com /SpamScope/mail-parser/pull/165
- github.com /SpamScope/mail-parser/releases/tag/4.6.0
- github.com /SpamScope/mail-parser/security/advisories/GHSA-fr3h-cpq2-9…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning