Sceawere
Vulnerability Detail
CVE-2026-76797UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
MongoSQL Tool CSV Formula Injection
Vulnerability Metadata
- Severity
- Medium
- Score / CVSS
- 6.3
- Creation Date
- 3h ago
- Vendor
- MongoDB
- Product
- BI Connector Transition Readiness Report
- Attack Type
- CWE-1236: Improper Neutralization of Formula Elements in a CSV File
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
- Attack Complexity
- LOW
Narrative and Response
Description
The MongoSQL Transition Readiness Tool writes database and collection names into its generated CSV reports without neutralizing leading characters that spreadsheet applications treat as formulas. A user with write privileges on the cluster can choose a namespace name that is later evaluated as a formula when an operator opens the generated report in a spreadsheet application, which may result in unintended disclosure of report contents or execution of external content on the operator's workstation. Generating a report for the affected namespace and opening it in a spreadsheet application is required.
Executive Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "6.3",
"pubDate": "2026-08-28T20:19:55.127Z",
"pubdate": "2026-08-28T20:19:55.127Z",
"executiveSummary": "The MongoSQL Transition Readiness Tool is susceptible to a CSV Formula Injection vulnerability, categorized as a type of Improper Neutralization of Input During Web Page Generation (CWE-838 variant).\nThis vulnerability exists because the tool fails to sanitize database and collection names before embedding them into generated CSV reports. If a privileged user creates a database or collection name starting with formula-triggering characters (e.g., '=', '+', '-', '@'), spreadsheet applications like Microsoft Excel or LibreOffice Calc will interpret these strings as executable commands upon opening the file.\nThe risk implication is significant, as a malicious actor with write privileges on the cluster can weaponize a namespace name to execute arbitrary commands or exfiltrate sensitive data from the operator's workstation.\nExploitation requires the attacker to possess sufficient privileges to define database or collection names, and it is contingent upon an operator opening the malicious report in a vulnerable spreadsheet application. While this is an indirect exploitation vector, the impact on client-side security is severe, potentially leading to remote code execution (RCE) or unauthorized data disclosure within the operator's local environment.",
"technicalDetails": "The root cause of this vulnerability is the lack of output encoding or prefix sanitization within the MongoSQL Transition Readiness Tool when exporting database metadata to CSV format. Spreadsheet software interprets cells starting with specific characters as DDE (Dynamic Data Exchange) or formulaic instructions rather than static text.\nThe attack flow proceeds as follows: 1. An attacker with write privileges creates a database or collection with a malicious name containing a CSV injection payload. For example, a name such as '=SUM(1+1)|cmd|'/C calc.exe'!A0' or similar syntax designed to trigger system calls via DDE or local system functions. 2. A system operator or administrator runs the MongoSQL Transition Readiness Tool, which queries the cluster's namespace metadata. 3. The tool generates a CSV report, embedding the malicious namespace string directly into the file without escaping or prepending characters (such as a single quote ' or space) that prevent formula interpretation. 4. The operator opens the resulting CSV file in a spreadsheet application. 5. Upon opening, the spreadsheet application parses the malicious cell, triggers the formula, and executes the embedded command or performs unauthorized external requests.\nThis vulnerability exploits the trusted execution context of the spreadsheet application. Since the application treats the input as a valid formula, it bypasses standard file-level security by executing instructions within the user's local session. The payload behavior is limited only by the capabilities of the target spreadsheet software and the permissions of the user running the application. Post-exploitation impact ranges from exfiltrating environment variables or report contents to the attacker's infrastructure via network-based formula triggers (e.g., =WEBSERVICE) to full remote code execution on the workstation if DDE or macro-based triggers are supported.\nThe affected component is the CSV report generation module within the MongoSQL Transition Readiness Tool. The requirement for exploitation is an authenticated user with permission to modify database or collection naming conventions. Because the report is generated from server-side cluster data, this represents a bridge between server-side data persistence and client-side execution, necessitating strict adherence to output sanitization standards for all data-interchange formats."
}