Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain schema-validator write privileges
-
DeliveryCraft malicious validator description with SQL injection payload
-
ExploitTrigger or await SHOW CREATE DDL generation
-
InstallPoisoned DDL distributed to operator or automation
-
C2Operator or pipeline replays DDL against SQL server
-
ExecuteInjected SQL executes with replay session privileges
-
ImpactConfidential data exfiltrated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concrete, simultaneous conditions: (1) the attacker holds high-privilege access sufficient to modify a MongoDB collection's JSON schema validator - typically a database administrator or equivalent role (PR:H in the CVSS 4.0 vector); (2) the target BI Connector deployment is explicitly configured to build its SQL schema from collection validators, which is not the default mode; and (3) an operator or automated tool actively replays the generated SHOW CREATE DDL output against a SQL server without sanitizing comment fields (UI:A). Environments without automated DDL replay pipelines are not exploitable even if conditions one and two are met. Exploitation is bounded by the need to control validator content and by the dependency on a downstream replay event outside the attacker's direct control. |
| Impact | The CVSS 4.0 score of 5.7 (Medium) accurately reflects a constrained but credible threat: AV:N establishes network reachability for the initial privilege step, but AT:P (specific attack requirements present) and PR:H (high privileges required) limit the attacker pool to trusted insiders or accounts compromised at the database-administrator level. UI:A (active user interaction required) further confines exploitation to environments where operators or automated pipelines replay SHOW CREATE DDL output against a SQL server without first sanitizing comment fields - a pattern common in schema-sync automation. No CISA KEV designation and no known POC exist, keeping exploitation probability low. The most credible scenario is a malicious insider persistently poisoning DDL output and waiting for a downstream replay event. The VC:H impact on the downstream SQL server represents meaningful data exposure risk in relevant deployments, but the multi-prerequisite attack chain - requiring high-privilege access, validator-based schema mode, and a DDL replay workflow - makes this a targeted, low-frequency threat rather than opportunistic mass exploitation. |
| Exploit ScenarioDerived | An insider or compromised administrator with schema-validator write access crafts a MongoDB collection validator whose description field contains backslash-delimited SQL injection sequences. The malicious content is silently embedded in the DDL comment within the next SHOW CREATE output generated by the BI Connector. When an operator or CI/CD automation tool subsequently replays this DDL against a MySQL-compatible SQL server without sanitization, the injected SQL executes with the replaying session's privileges, potentially exfiltrating table contents or modifying schema objects. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
SQL injection in MongoDB Connector for BI allows a high-privilege user to embed arbitrary SQL in generated DDL output by crafting a collection JSON schema validator description containing unescaped backslash sequences. All versions covered by cpe:2.3:a:mongodb:bi_connector:*:*:*:*:*:*:*:* in deployments that build SQL schemas from collection validators are affected. When an operator or automated pipeline later replays the poisoned SHOW CREATE output against a SQL server, the injected SQL executes with the replaying session's full privileges, potentially exfiltrating data or manipulating schema objects. No CISA KEV designation and no public exploit code are known at time of analysis.
RemediationAI
Consult the MongoDB BI Connector release notes at https://www.mongodb.com/docs/bi-connector/current/release-notes/ to identify the patched release and upgrade as soon as possible; no exact fix version is independently confirmed from available input data, so the release notes page should be checked directly. As a compensating control, restrict schema validator modification privileges to only the most trusted accounts, reducing the insider threat surface. Audit and modify any automated pipelines that consume BI Connector SHOW CREATE DDL output to validate or sanitize SQL comment text before re-execution against a SQL server - this removes the second-stage trigger without requiring an immediate upgrade, at the cost of added pipeline complexity. Deployments not using validator-based schema building are not exposed and require no immediate action.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MongoDB Connector for BI bridges MongoDB's document model to SQL-based BI tools by translating collection schemas into SQL DDL statements. When collections use JSON Schema validators, the BI Connector incorporates validator description fields into SQL comment text embedded in SHOW CREATE output. CWE-89 (SQL Injection) arises because backslash characters in these description strings are not fully escaped before interpolation into the generated SQL comment, allowing an attacker to break out of the comment boundary and inject executable SQL statements. The affected CPE cpe:2.3:a:mongodb:bi_connector:*:*:*:*:*:*:*:* encompasses all documented versions. The vulnerability is scoped to deployments explicitly configured to build their SQL schema from collection validators - not all BI Connector deployments use this mode.
Know when MongoDB gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
PR:H reflects required schema-validator write privileges; AC:H reflects the non-default deployment configuration and DDL replay dependency; S:C because injected SQL executes on a downstream SQL server outside the BI Connector's trust boundary.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
In MongoDB Connector for BI, the description text of a collection's JSON schema validator is incorporated into the comment text of the DDL returned by SHOW CREATE statements without complete escaping of backslash characters. A user with permission to modify a collection's schema validator, in deployments configured to build their SQL schema from those validators, can cause additional SQL text to be embedded in that 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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
EUVD-2026-67779
GHSA-67f8-9r65-xc46
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB