<- ALL CYBER NEWS
High
Microsoft, Azure, Cosmos DB, CosmosEscape, Cloud, Wiz, Multi-Tenant

Azure Cosmos DB 'CosmosEscape' Exposed a Platform-Wide Key
Azure Cosmos DB CosmosEscape let a standard account reach a platform-wide master key unlocking every tenant's database. Wiz's find and the cloud lesson.
Azure Cosmos DB 'CosmosEscape' Exposed a Platform-Wide Key
Azure Cosmos DB CosmosEscape was a sandbox-escape vulnerability that let a researcher with an ordinary Azure account reach a platform-wide "Cosmos Master Key" — a single signing secret that could unlock every Cosmos DB account across all tenants, regions, and API types. Wiz discovered it, reported it in November 2025, and Microsoft says there is no evidence any customer was affected, with full remediation and elimination of the platform-wide key completed by July 2026. No CVE was assigned, because the flaw lived entirely in Microsoft's cloud and was fixed service-side.
The escape started in Cosmos DB's Gremlin graph-query engine. Wiz researchers crafted malicious Gremlin queries that abused insufficient restrictions on .NET reflection to gain file-read and file-write primitives, then arbitrary code execution, inside the multi-tenant gateway components that serve requests. From there the exploit chain reached two things it never should have: the Cosmos Master Key, a global signing secret that unlocked any Cosmos account regardless of tenant, and a regional Config Store holding account names, subscription IDs, and network settings. With the master key an attacker could mint primary account keys for other customers' databases and gain full read/write access across tenants. Crucially, the attack needed only a standard Azure account with an attacker-controlled Gremlin database — no elevated permissions. Microsoft blocked the vulnerable Gremlin entry point within 48 hours of the report, but architecting the platform-wide key out of existence took until July 2026.
Why is a fully patched, no-impact bug still a big deal?
Because of what its existence says about cloud multi-tenant design. The concern voiced across Hacker News and cloud-security communities is architectural: why did a legacy, relatively niche query protocol like Gremlin sit close enough to a platform-wide "god key" that a sandbox escape in it could override tenant isolation for the entire service? Practitioners also flag that secondary API layers on multi-protocol databases — Gremlin, Cassandra, MongoDB-compatible interfaces — often have weaker sandbox boundaries than the primary engine, making them the soft underbelly. And there is a detection point that should unsettle any security team: if an attacker had used the platform master key, a customer's own audit logs and SIEM would show no key rotation and no anomalous activity, because the access happened below the tenant boundary. Customer-side detection would have been effectively impossible.
Aspect | Detail |
|---|---|
Name | CosmosEscape |
Affected service | Azure Cosmos DB (Gremlin graph API) |
Root cause | .NET reflection sandbox escape in multi-tenant gateway |
Reached | Platform-wide "Cosmos Master Key" + regional Config Store |
Impact possible | Cross-tenant read/write to any Cosmos DB account |
CVE | None (cloud service-side fix) |
Reported / fixed | Nov 2025 (Wiz) → Gremlin blocked in 48h; key eliminated July 2026 |
Customer impact | None found by Microsoft |
What should cloud teams actually take from this?
The questions defenders are asking are the useful ones. First, audit and disable unused database APIs — if you don't use the Gremlin or Cassandra interface on a Cosmos account, turning it off removes attack surface you were never using. Second, understand the limits of your own controls: Customer-Managed Encryption Keys and dedicated HSMs protect data at rest, but they do not help if a provider's platform key is extracted from memory in the multi-tenant layer above you. That is a shared-responsibility reality, not a configuration you can fix.
Our read
CosmosEscape is a clean illustration of why "understand your risk" has to include the parts of the stack you don't operate. There was nothing a customer could have configured to prevent this and nothing in their logs to detect it — the exposure lived in the provider's tenancy model. The defensible posture is to minimize the surface you do control (disable unused APIs, scope keys tightly, segment workloads) so that when a provider-side flaw like this surfaces, the blast radius into your environment is as small as it can be. Verifiable security means continuously mapping which of your cloud services expose which interfaces — not assuming multi-tenant isolation is absolute.
Reporting by The Hacker News; technical details per Wiz research; remediation timeline per Microsoft. Sources linked above.
Related: Copilot for Word prompt injection self-propagates via hidden text · VMware CVE-2026-59309: vCenter auth bypass and VM escape
Frequently asked questions
Was any customer data accessed in the Azure Cosmos DB CosmosEscape flaw?
Microsoft says it found no evidence of customer impact or unauthorized access to customer data. The vulnerability was reported by Wiz in November 2025 and fully remediated by July 2026.
Is there a CVE for CosmosEscape?
No. The flaw existed in Microsoft's multi-tenant cloud infrastructure and was fixed service-side, so no customer action or CVE tracking number was issued.
What was the "Cosmos Master Key"?
A platform-wide signing secret that could unlock any Azure Cosmos DB account across every tenant, region, and API type. Reaching it via the Gremlin sandbox escape would have allowed cross-tenant read/write access. Microsoft has since eliminated the platform-wide key entirely.
What can I do to reduce similar risk on my own Cosmos accounts?
Disable database API interfaces you don't use (such as Gremlin or Cassandra), scope and rotate account keys tightly, and segment sensitive workloads. Note that customer-managed keys protect data at rest but cannot mitigate a compromise of a provider's platform key in the multi-tenant layer.