Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege local OS account
-
DeliveryLocate CLI log file or shared terminal session
-
ExploitRead plaintext credential from diagnostic output
-
ExecutionAuthenticate to MongoDB instance with harvested credentials
-
ImpactAccess or exfiltrate database contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
|
| Exploitation Conditions | Exploitation requires local access to the host running the MongoDB SQL Schema Builder CLI with at least a low-privilege OS account (CVSS PR:L, AV:L). The log file attack path additionally requires that file logging be enabled in the CLI configuration and that the attacker have filesystem read access to the log directory - which may be granted by default group permissions or misconfigured ACLs. The terminal session attack path requires the attacker to share the terminal or have access to terminal session recordings. Exploitation is further extended - without requiring additional privileges - if log files are forwarded to any centralized system accessible to a broader audience. Exploitation does not require network access, special tooling, or any interaction from the operator after startup. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) accurately captures the threat model: exploitation is local, requires only low-privilege access, and yields high confidentiality impact with no integrity or availability consequence. The primary risk amplifier is log forwarding - if the CLI's log files are shipped to a centralized system, the effective attack surface expands from a single host to anyone with access to that aggregation platform. No public exploit code has been identified and this CVE is not listed in the CISA KEV catalog, so opportunistic mass exploitation is not a current concern. EPSS data was not provided in the input. Despite the moderate CVSS score, organizations running the SQL Schema Builder CLI in environments with shared local accounts, centralized log collection, or multi-tenant infrastructure should treat credential rotation as urgent, since exposed credentials grant direct database access independent of this CLI. No signals conflict in this case - the local vector, low privilege requirement, and confidentiality-only impact are mutually consistent and well-supported by the description. |
| Exploit ScenarioDerived | An operator starts the MongoDB SQL Schema Builder CLI with database credentials supplied as connection string arguments or environment-sourced configuration; the CLI prints the startup configuration - including those credentials in plaintext - to the terminal and to its log file. A second local user on the same host, or an analyst with access to a SIEM where those logs were forwarded, reads the log file and extracts the MongoDB username and password. No public exploit code is required; this is a passive read of accessible files. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 12, 2026
Plaintext credential exposure in MongoDB SQL Schema Builder CLI allows local users to read authentication material from diagnostic output or log files. The CLI writes its startup configuration - including connection settings containing authentication credentials - to standard output and optionally to a log file on disk without redacting sensitive values. Any local user with read access to the terminal session, the log directory, or a downstream log aggregation system can harvest those credentials and use them to authenticate to the connected MongoDB instance.
RemediationAI
Consult the MongoDB SQL interface changelog at https://www.mongodb.com/docs/sql-interface/changelog for the specific patched version and upgrade immediately. Until a confirmed fixed version is identified and applied, operators should rotate any credentials that may have been written to logs or terminal output since the CLI was first deployed - assume those values are compromised. As an immediate compensating control, restrict log file permissions to the owning service account only (chmod 600 or equivalent) and audit log forwarding pipelines to ensure CLI log files are excluded from shipment to centralized aggregators. If file logging is not required, disable it via the CLI's logging configuration to eliminate the on-disk exposure path. Note that disabling file logging does not eliminate the stdout exposure path if the terminal session is shared or recorded. No specific workaround eliminates the stdout path other than piping output to /dev/null, which would also suppress legitimate diagnostic information.
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
The MongoDB SQL Schema Builder CLI (CPE: cpe:2.3:a:mongodb:schema_builder_cli:*:*:*:*:*:*:*:*) is a command-line tool within MongoDB's SQL interface layer, used by operators to configure and manage schema mappings. CWE-532 (Insertion of Sensitive Information into Log File) describes the root cause: the application logs its runtime configuration at startup - a common observability pattern - but fails to redact or mask authentication-bearing fields such as connection strings, usernames, or passwords before writing them to stdout or the configured log destination. This class of flaw is particularly dangerous because log files often have broader read permissions than the application's runtime secrets, are frequently shipped to centralized log aggregators (SIEM, Splunk, ELK), and may be retained for extended periods, dramatically expanding the attack surface beyond the immediate host.
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:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Local attack vector with low-privilege OS access required; impact is confidentiality-only via passive read of unredacted log or terminal output.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.org
MongoDB SQL Schema Builder CLI records its startup configuration to standard output and, when file logging is enabled, to a log file on disk. Certain connection settings were written without redaction, so authentication material supplied by the operator could appear in plaintext in that diagnostic output. A local user with read access to the terminal session or the log directory, or anyone with access to a location where those logs are subsequently collected, could obtain those values.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
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
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
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8
Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or
EUVD-2026-57549
GHSA-wx8h-2jpv-xvwr
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB