CVE-2026-77586: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in MongoDB BI Connector
Description
CVE-2026-77586 is a high-severity SQL injection vulnerability in MongoDB Connector for BI. It arises because MongoDB object names are inserted into SQL DDL statements without properly escaping identifier delimiters. A user with write permissions to a sampled MongoDB collection can craft object names that inject additional SQL code. If this generated SQL is replayed against a SQL server, the injected code executes with that session's privileges.
CVSS v4.0
Score 8.5high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in MongoDB Connector for BI involves improper neutralization of special elements used in SQL commands (CWE-89). Specifically, MongoDB object names such as collection, field, and index names are embedded into quoted identifiers in the DDL text returned by SHOW CREATE statements without escaping the identifier delimiter. This allows a user with write permission on a sampled MongoDB collection to create object names that prematurely close the quoted identifier, injecting arbitrary SQL code into the generated output. If an operator or automated tool subsequently executes this generated SQL statement against a SQL server, the injected SQL code runs with the privileges of that session, potentially leading to unauthorized actions.
Potential Impact
An attacker with write access to a sampled MongoDB collection can inject arbitrary SQL commands into generated DDL statements. If these statements are executed on a SQL server, the injected commands run with the privileges of that session, potentially leading to unauthorized data access, modification, or other harmful actions. This elevates the risk of data compromise or disruption in environments using the MongoDB BI Connector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid executing generated SQL statements from SHOW CREATE outputs without thorough validation or sanitization. Restrict write permissions on sampled MongoDB collections to trusted users only to reduce risk.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7x84-hvm6-wgf7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-77586"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a92f7edacd9273b49e75f94
Added to database: 08/29/2026, 15:17:01 UTC
Last enriched: 09/29/2026, 21:32:28 UTC
Last updated: 10/12/2026, 06:48:19 UTC
Views: 33
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.
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.