Description
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.
Published: 2026-08-28
Score: 5.6 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary SQL execution via injection in generated SHOW CREATE statements, leading to remote code execution on the target SQL server
Action: Apply Patch
AI Analysis

Impact

The vulnerability lies in the MongoDB Connector for BI, where a collection’s JSON schema validator description is inserted into the COMMENT portion of the DDL produced by SHOW CREATE commands without fully escaping backslashes. An authorized user who can modify a schema validator can inject additional SQL code into this comment. When the generated DDL is later executed against a SQL server—either by an operator or an automated tool—the injected text runs with the current session’s privileges, offering an avenue for arbitrary SQL execution. This flaw is an instance of improper escaping (CWE‑89) and can be leveraged to bypass normal authorization controls and run malicious SQL statements.

Affected Systems

MongoDB BI Connector (MongoDB:BI Connector). No specific version range is listed in the advisory, so any deployments running the affected product before the referenced release notes update are potentially affected. Operators should verify the Connector version against the official MongoDB release notes to determine exposure.

Risk and Exploitability

The CVSS score of 5.6 indicates moderate severity; the EPSS score is not available, so exploitation probability cannot be quantified from this data. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires a user who has permission to alter a collection’s schema validator, a privilege typically restricted to administrators or privileged staff. After insertion, the attacker must trigger re‑execution of the generated DDL against a SQL server. While the attack path is somewhat constrained to internal users with specific rights, the impact—unrestricted SQL code execution—makes it a significant risk if those privileges are misused.

Generated by OpenCVE AI on August 28, 2026 at 22:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the MongoDB BI Connector to the latest version that sanitizes schema validator comments before including them in SHOW CREATE output.
  • If upgrade is not immediately possible, remove or restrict the ability for users to modify collection validators by revoking the dbAdmin or dbOwner roles and maintain strict administrative segregation.
  • Disable automatic generation of SQL schema from validators in the BI Connector configuration until the patch is applied, and re‑enable only after a thorough review of the generated DDL output.

Generated by OpenCVE AI on August 28, 2026 at 22:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 31 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 28 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb bi Connector
Vendors & Products Mongodb
Mongodb bi Connector

Fri, 28 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title MongoDB Connector for BI Incomplete Escaping of Stored Metadata in Generated SHOW CREATE Output
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 5.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:L/A:N'}

cvssV4_0

{'score': 5.6, 'vector': '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'}


Subscriptions

Mongodb Bi Connector
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-08-31T18:42:31.324Z

Reserved: 2026-08-20T16:02:44.598Z

Link: CVE-2026-77184

cve-icon Vulnrichment

Updated: 2026-08-31T18:42:27.429Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-28T20:19:55.400

Modified: 2026-08-31T19:17:12.967

Link: CVE-2026-77184

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T22:30:17Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')