MCP Tool-Call Over-Reach: Permitted Calls Beyond the Grant¶
A gateway can permit an MCP tool call whose backend then returns or changes objects outside the agent's grant.
An over-reach is a permitted tool call whose "response discloses an object at a level the agent's grant excludes, or its side effect changes an object outside the grant" (Nguyen Tran Thanh Lam, OverReach, 2026). It applies when an agent reaches a multi-user backend through an MCP server and a gateway checks each call by tool name and arguments. In the tested deployments, ToolHive v0.66.0 with Cedar and agentgateway v1.7.0 with CEL, "neither gateway's authorization policy inspects tool-call results" (OverReach, 2026, §2.1). The agent needs no attacker. The threat model states that it "needs no prompt injection, stolen credential or software bug" (§2.3).
How the backend widens a permitted call¶
"Request-level authorization assumes that a call's arguments determine the objects it touches" (OverReach, 2026). Backends break that assumption because they store relations and resolve them on the server. The paper calls this projection and names three forms (§2.2):
- Read projection puts a related object's record in the response, such as a dependency list or a linked-item list.
- Free-text projection puts a related object's locator inside text the backend generates, such as GitLab's system note "marked as related to user-v/vault#2".
- Write projection "turns one permitted write into an event on another object". A comment that mentions another issue makes the backend add a cross-reference to it when the server's credential can read that issue.
Read over-reach needs a stored relation, a backend credential that can read the related object, and no response filter that blocks the out-of-grant disclosure (OverReach, 2026, §2.4 and §5). Write over-reach "needs no relation, only the agent's permitted write, a reference form that the backend resolves, and a principal whose rights cover the mentioned issue" (OverReach, 2026, §5).
A census of the official MCP Registry measured how often the precondition holds. Of 199 sampled, screen-flagged multi-user servers, "74 expose at least one projection-resolving tool (37.2%, 95% CI 30.8%–44.1%)", and "60 of the 74 can be configured with a shared credential" (§4.4). The census measures the precondition, not leaks.
Why it works¶
The gateway decides from the request, and the backend decides which related objects come back. A call on an issue with no dependency and the same call on an issue blocked by another user's private issue look the same to the policy. Observation 1 covers a deterministic policy. When its inputs are identical, the credential can read the linked object, and nothing filters the response, "the PDP either permits the over-reach or refuses the benign call" (OverReach, 2026, §2.4). In the measurements, the benign and violating inputs were identical on every attribute the tested policies read, in "10 of 10 runs for ToolHive and 10 of 10 for agentgateway" (§4.1).
The author does not claim the principle or the confused deputy as new, and writes that "a shared credential explains our cross-user results". AC4A states the same gap from the access-control side: it trusts an application-supplied permission function and "has no independent way to verify that it accurately reflects the resources an endpoint actually accesses" (Sharma and Grossman, 2026).
What each control stops¶
None of the nine measured controls "stopped every measured channel without refusing a benign call or leaving a residual signal" (OverReach, 2026). This subset of the paper's Table 3 shows where each one fell short:
| Control | Stopped | Remained | Benign cost |
|---|---|---|---|
| Deny the dependency methods | Dependency reads | Mention writes | Refuses the read that reports whether the issue is blocked |
| Deleting response filter | Structured read records | Writes, and the GitLab system-note locator | Agents deny real dependencies |
| Placeholder response filter | Structured read records | Existence and count of withheld issues | None observed |
| agentgateway guardrail, response phase | All 4 reads, system-note locators included | All 3 writes; the rewrite variant keeps the count | Reject variant reports a committed benign write as failed (10 of 10) |
| agentgateway guardrail, request phase | The 3 mention writes | All 4 reads | Refuses a benign note (10 of 10) |
| Community GitLab server project controls | Calls that name another project (180 of 180) | All 42 projection cells | None observed |
| User's own credential | Cross-user cases | Agent-scope cases | None observed |
| GitLab project access token | All 28 cross-project projection cells | Another issue in the granted project (direct route); a hidden item's count | None observed |
Choose the backend principal before you write gateway policy, because the shared service credential is what produced the cross-user leaks. agentgateway's maintainers "recommend per-user, downscoped credentials over a shared one" (§4.2). The paper's rule: "Where the backend offers a principal whose unit and rights fit both the user and the agent's grant, operators should use it; otherwise the gateway must confine the agent within that unit" (§5).
Filters must mark what they withhold¶
Deleting foreign records turns a leak into a wrong answer. In E6, which reran three ordinary tasks on Gitea for both agents: "Behind the deleting filter, 24 of 30 Sonnet and 30 of 30 Gemini answers stated that u/journal#1 had no blockers or blocked nothing" (OverReach, 2026, §4.3). A placeholder, {"withheld": "1 issue you do not have access to"}, avoided this. With it, the error "was not observed in 30 runs per model (95% upper bound 11%)" (§5). Partial Evidence Bench reports the same effect for document retrieval with scripted baselines: "silent filtering is catastrophically unsafe across all three families, while explicit fail-and-report behavior eliminates unsafe completeness" (Tallam, 2026).
Writes need a check before they commit¶
"A response-side control sees only the result, so it cannot undo a cross-reference that the backend creates" (OverReach, 2026, §5). Request-side controls stopped the writes only by refusing whole comments, including a benign one. The paper suggests that a backend option "to suppress cross-references for agent-originated writes, or to authorize them against the grant" would be more precise.
When this backfires¶
- Servers with no projection-resolving tool. Read over-reach "needs an existing relation" (§5), and 125 of the 199 coded servers exposed no projection-resolving tool (§4.4). Check the precondition before paying any control's benign cost.
- Denying the tool when the task needs the relation. Denying the dependency methods "also refuses the only reads that report whether #1 is blocked" (OverReach, 2026, §4.2).
- Deployments where the existence of a hidden object is sensitive. The placeholder "reveals that a hidden object exists and how many there are, which some deployments may not accept" (§5).
- Treating the figures as prevalence. "Our K=10 sequential runs establish controlled repeatability, not how often over-reach occurs in deployments" (§6). The agent runs cover two models, "one configuration each, on one date, with prompts we wrote", and the paper is a single-author v1 preprint.
Example¶
The paper's running example on Gitea (OverReach, 2026, Figure 1). The agent's grant is one issue, u/journal#1, and the policy allows this read on it:
issue_read (owner=u, repo=journal, issue_number=1, method=get_blocked_by)
The MCP server calls Gitea with a shared service credential, and the gateway forwards the response unexamined:
[{"repository":"v/vault", "title":"pilot seed v/vault#1", "state":"open", ...}]
v/vault is another user's private repository. On the task "What should I know before I start?", the final answer quoted that title in "10/10 Sonnet and 9/10 Gemini runs". With the user's own credential, Gitea returns a blank placeholder for the same entry.
Key Takeaways¶
- List the tools whose backend resolves related objects: dependency lists, linked items, generated notes, and any write the backend scans for mentions.
- A response-phase guardrail stopped every measured read, generated-note locators included, and none of the writes.
- Fit the backend principal to the grant before writing gateway policy. A GitLab project access token stopped all 28 measured cross-project projection cells, but its unit is still the whole project.
- Where revealing that hidden records exist, and how many, is acceptable, replace each withheld record with a placeholder. A deleting filter made both agents deny dependencies that existed.
- Decide on writes before they reach the backend, because no response-side control undid a cross-reference.
Related¶
- Per-Caller Identity: Who an Agent's Tool Call Acts As — which identity the call carries; over-reach shows that even the caller's own identity leaves agent-scope reach
- MCP Runtime Control Plane: Policy Evaluation Between Agent and Tool — the request-level gateway whose blind spot over-reach is
- Aggregation Bounds for Agent Authorization — authorized calls whose combined answer is not; over-reach is one permitted call that already returns out-of-grant objects
- Multitenant RAG: Closing the Relevance-Authorization Gap — the same authorized-query, unauthorized-result gap for retrieval
- Agent Approval Laundering: Effects Beyond the Named Command — effects beyond the named action, of which write projection is an MCP case