Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify DMARC-monitored mailbox accepting external mail
-
DeliverySend email with Subject: '../../../' causing DMARC failure
-
Exploitparsedmarc processes forensic failure report with --output enabled
-
ExecutionSubject sanitization yields empty string, fallback passes raw Subject to os.path.join()
-
PersistPath resolves outside samples directory
-
ImpactAttacker-controlled .eml written to ancestor directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires parsedmarc to be running with the --output flag enabling forensic report sample file output - this feature is not active by default and must be explicitly opted into by the operator. The attacker must be able to deliver email (including spoofed or DMARC-failing messages) to a mailbox monitored by parsedmarc; no authentication to the parsedmarc service itself is required per the CVSS PR:N metric. The written file is constrained to a dot-prefixed .eml filename in an ancestor directory of the samples path; the attacker cannot target an arbitrary absolute path or overwrite binaries unless the samples path is located in a sensitive ancestor tree and the parsedmarc process user has write permissions there. These structural constraints - non-default configuration, limited filename control, ancestor-only placement - meaningfully reduce exploitability relative to a raw CVSS 6.3 score. |
| Impact | The CVSS 4.0 score of 6.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L) accurately characterizes this as a moderate finding. The AT:P (Attack Target: Presence) metric correctly encodes the critical deployment prerequisite: the --output flag enabling forensic sample file output must be explicitly configured, as it is disabled by default. Without that flag, parsedmarc never invokes the vulnerable code path. Impact is further constrained - the written file is dot-prefixed, placed in an ancestor rather than arbitrary directory, and formatted as an .eml; direct code execution is not a straightforward outcome absent a secondary vulnerability (e.g., a daemon that auto-processes dot-files in that ancestor path). No CISA KEV listing and no public exploit identified at time of analysis; EPSS data was not provided. Real-world risk is realistic for organizations that use parsedmarc with --output and accept email from untrusted senders, which is the typical DMARC monitoring use case - DMARC specifically exists to process potentially malicious/spoofed mail. The combination of no default exposure, low integrity impact, and no active exploitation places this firmly in routine-maintenance rather than emergency-patching territory. |
| Exploit ScenarioDerived | An attacker delivers an email with a Subject of '../../../' or '/' to a mailbox monitored by parsedmarc running with --output enabled. When DMARC authentication fails and the forensic report is processed, save_output() sanitizes the Subject to an empty string, falls back to the raw value, and os.path.join() resolves the resulting path to an ancestor directory above the samples folder. The attacker-crafted email body is then written there as a dot-prefixed .eml file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Path traversal in parsedmarc 9.0.6 through 11.0.0 allows a network attacker who can send email to a monitored mailbox to write attacker-controlled files outside the intended samples directory. The flaw lives in save_output(), which names forensic failure report samples after the email Subject header but falls back to the raw unsanitized Subject when sanitization yields an empty string - which occurs whenever the Subject consists entirely of path separators or dots such as '../../../'. The attacker-supplied email body is then written as a dot-prefixed .eml file to an ancestor directory of the configured samples path. No public exploit identified at time of analysis; exploitation additionally requires the --output flag to be enabled.
RemediationAI
Upgrade to parsedmarc 11.0.1, available at https://github.com/domainaware/parsedmarc/releases/tag/11.0.1. The fix sanitizes the Subject filename at write time and substitutes the literal string 'sample' (rather than the raw Subject) when sanitization yields an empty result; it also stops trusting the filename_safe_subject key that library callers could supply. If immediate upgrade is not feasible, disable the --output flag to prevent forensic report sample files from being written to disk, which eliminates the vulnerable code path entirely at the cost of losing forensic sample retention. No other workaround addresses the root cause; filesystem-level restrictions on the parsedmarc process user (e.g., confining it to a chroot or a dedicated directory with limited parent traversal) could reduce blast radius but would not prevent file writes to accessible ancestor directories.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
parsedmarc (CPE: cpe:2.3:a:domainaware:parsedmarc:*) is an open-source Python tool that fetches and parses DMARC aggregate and forensic failure reports from monitored email mailboxes. When invoked with --output, the save_output() function persists forensic report message samples as .eml files, deriving each filename from the email's Subject header via a sanitization helper. The root cause is CWE-22 (Path Traversal): the sanitization function strips path-unsafe characters, but when the Subject is composed exclusively of path traversal sequences (e.g., '../../../' or '/'), every character is removed and an empty string is returned. The fallback logic then passes the raw, unsanitized Subject directly to os.path.join(), allowing the resolved output path to escape the configured samples directory and reach an ancestor directory. The file's content is the attacker-crafted email body, and the resulting filename carries a dot prefix. The same release (11.0.1) also fixed an unbounded decompression issue in extract_report() for gzip and zip attachments, hardening the attachment-handling attack surface more broadly.
Know when Parsedmarc gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Non-default --output configuration is required (AC:H); attacker writes a dot-prefixed file to an ancestor directory only (I:L); no confidentiality or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
parsedmarc 9.0.6 before 11.0.1 writes forensic report sample files using an output path derived from the email subject. When the subject consists entirely of path traversal sequences, the filename sanitization function produces an empty string, and a fallback to the raw unsanitized subject causes the resulting file to be written outside the intended samples directory. An attacker who can cause a forensic failure report with a crafted Subject to be processed can write a dot-prefixed file with attacker-controlled content to an ancestor directory of the configured samples output path. Exploitation requires that file output for forensic report samples is enabled.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-70741
NVD
CVE.org
EPSS
GitHub
Exploit-DB