Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege local host access
-
DeliveryConfirm connection health metric logging is enabled
-
ExploitWait for or trigger SASL authentication events
-
ExecutionRead MongoDB server log files
-
PersistExtract plaintext SASL credentials
-
ImpactAuthenticate to MongoDB as compromised account
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 | Two explicit conditions must both be satisfied: (1) connection health metric logging must be enabled on the MongoDB server - this is the specific non-default configuration setting that triggers unredacted credential writes to the log, and deployments where this feature is not enabled are not affected by this code path; (2) the attacker must have local OS-level access to the server host with at least low-privilege read permissions on the MongoDB log files, consistent with the CVSS 4.0 vector PR:L and AV:L. Exploitation is bounded by the local-only attack vector - network-based attackers cannot exploit this without first compromising local host access. The non-default nature of connection health metric logging further limits the exposed population to deployments that have explicitly enabled this diagnostic feature. Authentication requirements for OS access are not further specified in available data, but CVSS PR:L confirms some level of existing system-level access is required. |
| Impact | The CVSS 4.0 score of 6.8 with vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N reflects a locally-exploitable, low-complexity credential disclosure with high confidentiality impact confined to the vulnerable system (SC:N/SI:N/SA:N confirms no lateral scope change). The local attack vector (AV:L) is the primary risk-limiting factor - remote-only attackers cannot directly exploit this without first obtaining local host access. Low privileges required (PR:L) means even a restricted OS-level account can read log files if filesystem ACLs permit. There is no CISA KEV listing and no public exploit identified at time of analysis; no EPSS score was provided in the source data. Real-world priority is moderate: the threat model centers on insider threats, compromised co-located processes (e.g., a breached application container), or post-compromise lateral movement scenarios where an attacker already on the host harvests database credentials from logs. Organizations running MongoDB with connection health metric logging disabled are not exposed to this specific code path, which meaningfully narrows the affected population. The absence of integrity and availability impact (VI:N/VA:N) confirms this is a pure credential disclosure issue, not a direct code execution vector. |
| Exploit ScenarioDerived | An attacker with a low-privileged foothold on the MongoDB host - such as a compromised application service account or a malicious insider - navigates to the MongoDB log directory and reads the server log, which contains plaintext SASL authentication parameters written during client connection events. The attacker extracts the credential material and uses it to authenticate directly to the MongoDB instance with the privileges of the logged account, gaining unauthorized read access to all databases accessible by those credentials. No exploit code is required; standard filesystem utilities are sufficient if connection health metric logging is active. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
MongoDB Server leaks SASL authentication credentials into plaintext server logs when connection health metric logging is enabled, exposing database passwords to any local actor with log file read access. The flaw (CWE-532) affects all versions per the available CPE data and was self-disclosed by MongoDB, indicating a vendor-acknowledged issue without a confirmed patch version at time of analysis. A low-privileged local attacker who can read the MongoDB log directory can harvest credentials and authenticate directly to the database - no public exploit exists at time of analysis, and it is not listed in the CISA KEV catalog.
RemediationAI
No vendor-released patched version has been independently confirmed - the only available reference is MongoDB Jira ticket SERVER-126506 (https://jira.mongodb.org/browse/SERVER-126506), which should be monitored for patch release details and an official advisory with exact fix versions. As an immediate compensating control, disable connection health metric logging if it is not operationally required; this directly eliminates the code path responsible for unredacted credential writes and carries no functional impact for workloads that do not depend on this diagnostic feature. If health metric logging must remain enabled for operational reasons, restrict filesystem read permissions on MongoDB log directories to only trusted administrative accounts and service identities, removing access for application-tier or lower-privilege OS accounts. Additionally, conduct a retrospective review of existing log files for exposed credential material and rotate any SASL credentials (usernames and passwords) that may have been written to logs while the feature was active. Until an official patch is available, treat log file access control as a primary security boundary for this deployment.
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 root cause is CWE-532 (Insertion of Sensitive Information into Log File), a class of vulnerability where the application writes security-sensitive data to diagnostic output without sanitization. SASL (Simple Authentication and Security Layer) is the authentication framework MongoDB uses for mechanisms such as SCRAM-SHA-1, SCRAM-SHA-256, GSSAPI, and PLAIN. During SASL authentication, the server exchanges structured parameter payloads that include credential material. MongoDB's connection health metric logging subsystem - when enabled - captures the full authentication parameter object and writes it verbatim to the server log, bypassing any credential redaction logic applied in other log paths. The CPE string cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* with an unrestricted version wildcard indicates MongoDB has not yet scoped the issue to a specific version range, suggesting broad exposure across the product line. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L) confirms the attack surface is limited to the local system filesystem rather than the network layer.
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
Primary rating from Vendor (mongodb) · only source for this CVE.
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
MongoDB server may log authentication parameters, including credentials, to the server log during SASL authentication. When connection health metric logging is enabled, the full authentication parameters are written to the log without redaction.
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
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
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
EUVD-2026-35856
GHSA-93h4-p6c6-58pw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB