CVE-2026-77184

MongoDB Connector for BI Incomplete Escaping of Stored Metadata in Generated SHOW CREATE Output

Published Aug 28, 2026 CVSS 4.0 · 5.6 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:mongodb:bi_connector:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb bi Connector
Vendors & Products Mongodb
Mongodb bi Connector
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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 31, 2026, 6:42 PM
Reserved
Aug 20, 2026, 4:02 PM
Status
Analyzed
Published
Aug 28, 2026, 8:19 PM
Modified
Sep 29, 2026, 7:16 PM