Skip to main content

parsedmarc CVE-2026-82521

| EUVDEUVD-2026-70741 MEDIUM
Path Traversal (CWE-22)
2026-09-03 VulnCheck
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify DMARC-monitored mailbox accepting external mail
  2. Delivery
    Send email with Subject: '../../../' causing DMARC failure
  3. Exploit
    parsedmarc processes forensic failure report with --output enabled
  4. Execution
    Subject sanitization yields empty string, fallback passes raw Subject to os.path.join()
  5. Persist
    Path resolves outside samples directory
  6. Impact
    Attacker-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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

parsedmarc 9.0.6 <11.0.1

Affected Packages

euvd parsedmarc fix: 11.0.1

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

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Low
niche email-security tool used only in DMARC-monitoring deployments
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy