Skip to main content

mcp-google-workspace EUVDEUVD-2026-33721

| CVE-2026-10277 LOW
Improper Access Control (CWE-284)
2026-06-01 VulDB GHSA-37j4-5858-49mq
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to MCP server with low-privilege session
  2. Delivery
    Invoke gmail_get_attachment with traversal path argument
  3. Exploit
    Unvalidated saveToDisk resolves path outside base directory
  4. Execution
    Attacker-controlled content written to arbitrary file
  5. Impact
    Sensitive 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

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

mcp-google-workspace 831790e7d5c2663325733d9f5579cc339a267c4c

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

Vendor (VulDB) PRIMARY 2.1 LOW
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

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

Lifecycle Timeline

2
Severity Changed
Jun 01, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
Jun 01, 2026 - 19:22 NVD
6.3 (MEDIUM) 2.1 (LOW)

DescriptionCVE.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

EPSS Score
0.0%
Top 87% exploitable
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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