ZeroHour

CVE-2026-77586

niche

SQL Injection in MongoDB Connector for BI via SHOW CREATE DDL

CVSS 4.0
8.5 high
EPSS
<1%p13
Published
()
Modified
AI analysis

MongoDB Connector for BI fails to escape identifier delimiters when it inserts MongoDB collection, field, and index names into the quoted identifiers of the DDL text returned by SHOW CREATE statements (CWE-89). A user who has permission to write to a sampled MongoDB collection can craft an object name that closes the quoted identifier early, injecting additional SQL text into the generated statement. If an operator or automated tool later replays that generated statement against a SQL server, the injected text executes with the privileges of that session, giving the attacker SQL execution (rated high for confidentiality, integrity, and availability on the affected system). Affected are deployments of MongoDB Connector for BI in which low-privileged users can write to collections being sampled; the available data does not specify vulnerable version ranges. Exploitation is not currently known to occur in the wild, with no public proof-of-concept, a 0.2% 30-day EPSS probability, and no entry in CISA's KEV catalog.

What to do: Check MongoDB's advisory for this CVE and upgrade Connector for BI to the patched version once identified. In the meantime, restrict write permissions on collections that are being sampled, and avoid replaying SHOW CREATE output against SQL servers without reviewing object names for embedded identifier delimiters (quotes/backticks).

Affected
MongoDB Connector for BI
Estimated exposure
nicheunknown; likely on the order of thousands of deployments (optional connector, multi-step exploitation path) — No install or scan counts are available, but the BI Connector is an optional component used to expose MongoDB collections to SQL-based BI tools, and exploitation additionally requires a write-capable user on a sampled collection plus a…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

In MongoDB Connector for BI, MongoDB object names such as collection, field, and index names are placed into the quoted identifiers of the DDL text returned by SHOW CREATE statements without escaping the identifier delimiter. A user with permission to write to a sampled MongoDB collection can choose a name that closes the quoted identifier early, so that additional SQL text becomes part of the generated output. If an operator or automated tool later replays that generated statement against a SQL server, the additional text is executed with the privileges of that session.

Weakness
CWE-89
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.