Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach commit tool via injected agent or HTTP/SSE
-
DeliveryStage batch and capture confirmation_token
-
ExploitReuse self-issued token to authorize commit
-
ExecutionSupply absolute/dot-dot/symlinked output_file_path
-
ImpactOverwrite server-writable file with generated XML
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | The attacker must be able to invoke the commit_payment_batch MCP tool on pain001-mcp 0.0.72-0.0.79: in the default stdio deployment this means driving the connected agent (e.g., via prompt injection in untrusted content), while enabling the opt-in HTTP or SSE transports lets any reachable client call it directly. The flow requires first calling stage_payment_batch to obtain the confirmation_token, which is returned to the same caller and reusable, then supplying an absolute, ../, or symlinked output_file_path to commit_payment_batch. Exploitation is limited to paths the server's OS user can write and to creating/overwriting files with the generated XML content (no read/exfiltration primitive); there is no genuine dual-control barrier because the token is self-issued. Vendor-stated workarounds: do not expose the HTTP/SSE transports and run the server as a user confined to a dedicated writable directory; updating to 0.0.80 is the complete fix. |
| Impact | This is a genuine but bounded-priority issue rather than an internet-scale emergency, and the signals mostly agree. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, VC:N/VI:H/VA:H) scores 6.9 (Medium) and the vuln.today decision label is 'this_month' - i.e., schedule a fix, not drop-everything. The vendor confirms a real arbitrary-file-write primitive: the 'dual-control' token is self-issued to the same caller, so no second principal is actually required, and commit_payment_batch writes output_file_path verbatim (creating parent dirs and overwriting existing files). The limiting factor is reach: the base vector is AV:L because the default MCP transport is local/stdio, so the realistic attacker is a prompt-injected agent driving the tool. The advisory explicitly notes that the opt-in HTTP or SSE transports extend this to any reachable network client - in that non-default deployment the effective attack vector becomes network, which the base score does not capture. No EPSS score and no KEV listing are provided, and there is no confirmed working exploit; the GitHub references point to the vulnerable source lines and the fix, not to weaponized code. Net: a legitimately exploitable integrity/availability flaw in a niche product, worth patching promptly but not showing signs of mass exploitation. |
| Exploit ScenarioDerived | An AI agent wired to pain001-mcp is fed untrusted content containing a prompt injection (or, where HTTP/SSE is enabled, any client reaches the server directly); it calls stage_payment_batch, receives the confirmation_token back, and then calls commit_payment_batch with output_file_path set to an absolute, dot-dot, or symlinked path. The server writes attacker-influenced XML to that location, overwriting an existing server-writable file. No public exploit is identified at time of analysis, though the vulnerable code path is documented in the GHSA advisory and linked source lines. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Arbitrary file write in pain001-mcp 0.0.72 through 0.0.79 allows a caller of the commit_payment_batch MCP tool to create or overwrite files anywhere the server's OS user can write, because output_file_path is used exactly as supplied with no confinement to an output directory. The 'dual control' gate is not a real barrier: stage_payment_batch hands the confirmation_token back to the same principal that staged the batch, so a caller - or an agent driven by prompt-injected content in the default stdio deployment, or any client reaching the opt-in HTTP/SSE transports - can stage, reuse the token and commit to an absolute, ../ or symlinked path. Impact is bounded to writing generated XML content (no read or exfiltration primitive); there is no CISA KEV entry and no public exploit identified at time of analysis, and the issue is prioritised as a this-month rather than emergency item, with a vendor fix released in 0.0.80.
RemediationAI
Upgrade pain001-mcp to 0.0.80, which confines every write to PAIN001_MCP_OUTPUT_DIR (or the server's working directory when unset), resolves paths including symlinks before checking them, accepts only .xml destinations and creates files exclusively so existing files are never overwritten; the fix is in commit 1c6291907c96329eef29fb6517535a304a302096 and the release at https://github.com/sebastienrousseau/pain001-mcp/releases/tag/v0.0.80. After upgrading, callers must pass output_file_path relative to the output directory, or the operator must set PAIN001_MCP_OUTPUT_DIR to the intended drop location, otherwise writes will be refused. If upgrading cannot be done immediately, the vendor's stated workarounds are to not expose the HTTP or SSE transports (this removes direct client reachability but does not stop an agent that is already driven by untrusted content over stdio) and to run the server as a user that can only write to a dedicated directory (this limits the blast radius of a successful traversal but does not fix the missing path confinement); updating to 0.0.80 is the complete fix.
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
pain001-mcp is a Python MCP (Model Context Protocol) server that generates ISO 20022 pain.001 payment initiation XML through a two-step tool flow: stage_payment_batch simulates a batch and returns a confirmation_token, and commit_payment_batch writes the resulting XML to the optional output_file_path argument. The root cause is CWE-73 (External Control of File Name or Path): the commit handler passed the caller-supplied path straight to the filesystem, creating missing parent directories and overwriting an existing file, with no check that the destination stayed inside an output directory. Because the confirmation token was issued to the same caller that requested the staging, the intended dual-control separation did not exist in practice. The 0.0.80 fix adds a new pain001_mcp/_output.py module that resolves the requested path (symlinks included) against PAIN001_MCP_OUTPUT_DIR, falling back to the server's working directory, rejects anything that is not relative to that root, accepts only .xml suffixes, and creates the file in exclusive mode so an existing file is never replaced; the documentation and tool descriptions were also corrected to stop describing the token as dual control. The vendor advisory rates this CVSS 4.0 6.9 (AV:L/AC:L/PR:N/UI:P with high integrity and availability impact), while the independent assessment scores CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H, both reflecting a local-attack-path write primitive requiring the victim to invoke the tool rather than a remote unauthenticated write.
Know when Pain001 Mcp 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:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Default stdio MCP transport is local (AV:L) and prompt-injection driving implies user interaction (UI:R); no auth gates the tool (PR:N); arbitrary file write/overwrite gives I:H and A:H with no read (C:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
pain001-mcp 0.0.72 before 0.0.80 contains a path traversal vulnerability in the commit_payment_batch MCP tool that allows attackers to write files outside any output directory via output_file_path. Attackers can stage a batch, reuse the self-issued confirmation_token, and supply absolute, dot-dot, or symlinked paths to create or overwrite server-writable files with generated XML.
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-134881
GHSA-r4x8-fc29-xm5r
NVD
CVE.org
EPSS
Exploit-DB