Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MCP server with low-privilege session
-
DeliveryInvoke gmail_get_attachment with traversal path argument
-
ExploitUnvalidated saveToDisk resolves path outside base directory
-
ExecutionAttacker-controlled content written to arbitrary file
-
ImpactSensitive file overwritten on server filesystem
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The MCP server must be running and the attacker must hold a low-privilege authenticated MCP session (CVSS PR:L), meaning they are either a legitimate user of the mcp-google-workspace server or a prompt-injection payload executing within an active AI session that has the server configured. The gmail_get_attachment or gmail_bulk_save_attachments tool must be reachable and the attacker must be able to supply or influence the save path parameter - direct server misconfiguration is not required, but the tool must be invoked. Exploitation is further constrained by the OS permissions of the server process: path traversal can only reach filesystem paths writable by the MCP server's service account. Deployments running the server inside a container, chroot, or with a restricted filesystem namespace significantly reduce the set of reachable targets even if the traversal succeeds. |
| Impact | The CVSS 4.0 score of 2.1 (Low) reflects the combined constraints of low privileges required (PR:L) and limited impact across confidentiality, integrity, and availability (VC:L/VI:L/VA:L on the vulnerable system, with no subsequent-system impact SC:N/SI:N/SA:N). The E:P modifier confirms a proof-of-concept is public, which marginally elevates real-world concern beyond the base score. No EPSS score was supplied in the input data and the CVE is not listed in CISA KEV, leaving exploitation prevalence unconfirmed beyond the POC. Despite the low CVSS score, the practical impact of arbitrary file writes may exceed 'Low' in specific deployment contexts: an MCP server running under an elevated OS account, or where an attacker can overwrite sensitive configuration or credential files reachable by the server process. The MCP integration model also introduces a prompt-injection delivery surface absent from the CVSS vector calculation - a malicious third-party email opened through the Gmail tool could supply a crafted attachment path without any direct attacker-to-server network session. Defenders should weigh the privilege level of the MCP server process account and the sensitivity of filesystem contents accessible to it. |
| Exploit ScenarioDerived | An attacker with a low-privileged authenticated MCP session - or a malicious prompt injected via a crafted email body processed by the AI assistant - invokes gmail_get_attachment with a save path argument of '../../.ssh/authorized_keys' or a similar traversal sequence. The unvalidated saveToDisk function resolves this path relative to the server's working directory and writes the attachment's content (controllable by whoever crafted the email) to the targeted file outside the intended attachments directory. A public proof-of-concept demonstrating this behavior is available at https://github.com/j3k0/mcp-google-workspace/issues/19. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Path traversal via improper access control in mcp-google-workspace's MCP Gmail Tool (all pre-patch commits through 831790e) allows an authenticated low-privileged MCP client to write files to arbitrary filesystem locations by supplying crafted relative paths containing directory traversal sequences to the saveToDisk function. Publicly available exploit code exists (GitHub issue #19), though the attack requires an active MCP session (CVSS PR:L). No public exploitation has been confirmed by CISA KEV, but the MCP deployment context introduces prompt-injection as a realistic delivery vector - a malicious email or document processed by an AI assistant could trigger the vulnerable tool without direct human interaction beyond the initial session setup.
RemediationAI
Apply the upstream fix by updating mcp-google-workspace to a version at or after commit 89c091ecf8b9f9c7291d1af0b1966e271f86551c (https://github.com/j3k0/mcp-google-workspace/commit/89c091ecf8b9f9c7291d1af0b1966e271f86551c, PR #22); since no tagged release is available, operators should pull the latest main branch commit and verify the gmail-helpers.ts resolveAttachmentPath function is present. As a compensating control prior to patching, explicitly set the GMAIL_ATTACHMENTS_DIR environment variable to a dedicated, sandboxed directory with tight OS-level permissions, isolating any traversal attempts to an inconsequential path; note that this alone does not block the attack if the controlled directory itself contains sensitive content. Operators who do not require attachment-saving functionality should disable the gmail_get_attachment and gmail_bulk_save_attachments tools entirely, accepting the trade-off of losing that workflow. Running the MCP server process under a dedicated least-privilege OS account further constrains the blast radius by limiting which filesystem paths a successful traversal can reach. The patch also adds GMAIL_ALLOW_SENDING and GMAIL_ALLOW_DRAFTS flags (both disabled by default) to reduce the overall attack surface of the server.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mcp-google-workspace (CPE: cpe:2.3:a:j3k0:mcp-google-workspace:*:*:*:*:*:*:*:*) is a Model Context Protocol server that bridges Google Workspace services - Gmail, Calendar, and Drive - into AI assistant workflows such as Claude Desktop. The vulnerable code resides in src/tools/gmail.ts within the saveToDisk function, which is invoked by the gmail_get_attachment and gmail_bulk_save_attachments MCP tools when persisting email attachments to local disk. The function accepted caller-supplied file paths without any validation, a textbook CWE-284 (Improper Access Control) path traversal defect: a path such as '../../.ssh/authorized_keys' would resolve outside the intended attachments directory. The patch (commit 89c091ecf8b9f9c7291d1af0b1966e271f86551c) introduces a resolveAttachmentPath helper in a new gmail-helpers.ts module that enforces a configurable base directory (GMAIL_ATTACHMENTS_DIR, defaulting to ~/.mcp-gsuite/attachments), rejects absolute paths, directory traversal sequences, NUL bytes, and symlinks that escape the base directory - all verified by an accompanying test suite.
Know when Mcp Google Workspace 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:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was found in j3k0 mcp-google-workspace up to 831790e7d5c2663325733d9f5579cc339a267c4c. This issue affects the function saveToDisk of the file src/tools/gmail.ts of the component MCP Gmail Tool. Performing a manipulation results in improper access controls. It is possible to initiate the attack remotely. The exploit has been made public and could be used. This product is using a rolling release to provide continious delivery. Therefore, no version details for affected nor updated releases are available. The patch is named 89c091ecf8b9f9c7291d1af0b1966e271f86551c. It is suggested to install a patch to address this issue.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-33721
GHSA-37j4-5858-49mq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB