Critical Flaw Allowed to Azure Cosmos DB Pwnage
Named CosmosEscape, the vulnerability exposed the primary key for Cosmos DB accounts, granting full read and write access. The post Critical Flaw Allowed to Azure Cosmos DB Pwnage appeared first on SecurityWeek .
AI Analysis
Technical Summary
The CosmosEscape vulnerability in Azure Cosmos DB allowed attackers to bypass the Gremlin API sandbox using .NET reflection, achieving code execution on the multi-tenant DB Gateway service. This gateway used a platform-wide signing key, termed the Cosmos Master Key, which could retrieve the primary key for any Cosmos DB account across tenants, regions, and APIs. With this key, attackers could enumerate all Cosmos DB accounts, filter by organization identifiers, and gain full read/write access to targeted databases. The vulnerability affected Microsoft’s internal use of Cosmos DB as well. Microsoft was notified in November 2025, issued a hotfix within two days, and completed a comprehensive architectural fix by July 2026. Extensive log reviews found no unauthorized access beyond testing.
Potential Impact
Exploitation of CosmosEscape would have allowed an attacker to fully compromise any Azure Cosmos DB account by obtaining its primary key, granting unrestricted read and write access to all data. This includes private, network-isolated accounts and Microsoft’s own databases used by services such as Entra ID, Teams, and Copilot. The vulnerability could have enabled attackers to precisely target organizations at platform scale by enumerating and filtering databases by subscription and tenant IDs. However, no evidence of exploitation in the wild was found.
Mitigation Recommendations
Microsoft released a hotfix blocking the attack vector within two days of the vulnerability report and completed a long-term architectural fix across all regions by July 2026. The vendor has confirmed no unauthorized activity was detected and stated that no customer action is required. Organizations should ensure their Azure Cosmos DB services are updated with the latest patches and monitor official Microsoft advisories for any further guidance.
Critical Flaw Allowed to Azure Cosmos DB Pwnage
Description
Named CosmosEscape, the vulnerability exposed the primary key for Cosmos DB accounts, granting full read and write access. The post Critical Flaw Allowed to Azure Cosmos DB Pwnage appeared first on SecurityWeek .
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The CosmosEscape vulnerability in Azure Cosmos DB allowed attackers to bypass the Gremlin API sandbox using .NET reflection, achieving code execution on the multi-tenant DB Gateway service. This gateway used a platform-wide signing key, termed the Cosmos Master Key, which could retrieve the primary key for any Cosmos DB account across tenants, regions, and APIs. With this key, attackers could enumerate all Cosmos DB accounts, filter by organization identifiers, and gain full read/write access to targeted databases. The vulnerability affected Microsoft’s internal use of Cosmos DB as well. Microsoft was notified in November 2025, issued a hotfix within two days, and completed a comprehensive architectural fix by July 2026. Extensive log reviews found no unauthorized access beyond testing.
Potential Impact
Exploitation of CosmosEscape would have allowed an attacker to fully compromise any Azure Cosmos DB account by obtaining its primary key, granting unrestricted read and write access to all data. This includes private, network-isolated accounts and Microsoft’s own databases used by services such as Entra ID, Teams, and Copilot. The vulnerability could have enabled attackers to precisely target organizations at platform scale by enumerating and filtering databases by subscription and tenant IDs. However, no evidence of exploitation in the wild was found.
Mitigation Recommendations
Microsoft released a hotfix blocking the attack vector within two days of the vulnerability report and completed a long-term architectural fix across all regions by July 2026. The vendor has confirmed no unauthorized activity was detected and stated that no customer action is required. Organizations should ensure their Azure Cosmos DB services are updated with the latest patches and monitor official Microsoft advisories for any further guidance.
Technical Details
- Article Source
- {"url":"https://www.securityweek.com/critical-flaw-led-to-azure-cosmos-db-pwnage/","fetched":true,"fetchedAt":"2026-07-31T09:08:06.831Z","wordCount":1237}
Threat ID: 6a6c65f69c2644c7f8967dff
Added to database: 07/31/2026, 09:08:06 UTC
Last enriched: 07/31/2026, 13:37:12 UTC
Last updated: 09/08/2026, 02:07:02 UTC
Views: 124
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.