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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from Vendor (mongodb) · only source for this CVE.
CVSS VectorVendor: mongodb
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
More in Mongodb Server
View allCredential exposure in MongoDB Server's replica-set/sharded-cluster internal authentication allows an adjacent-network a
Out-of-bounds memory write in MongoDB Server's time-series collection feature enables arbitrary code execution by authen
MongoDB Server sharded clusters are vulnerable to use-after-free memory corruption when authenticated users with read pe
Remote unauthenticated denial-of-service in MongoDB Server's BSON validation layer allows attackers to crash the mongod
Unauthenticated denial of service in MongoDB Server's aggregation framework allows remote attackers to crash the mongos
Pre-authentication denial-of-service in MongoDB Server allows unauthenticated remote clients to crash the database proce
Authenticated users can crash MongoDB Server by chaining specific server-side JavaScript operations ($_internalJsEmit or
Use-after-free in MongoDB Server's timeseries bucket lifecycle handling allows an authenticated user with write-level pr
Use-after-free memory corruption in MongoDB Server's $graphLookup aggregation stage allows an authenticated high-privile
Memory disclosure and denial-of-service in MongoDB Server allows any authenticated user with aggregate command privilege
Queryable Encryption maintenance operations in MongoDB Server permit an authenticated low-privileged database user to ca
Authorization bypass in MongoDB Server allows an authenticated user holding only a limited database-scoped role to issue
Same technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-35856
GHSA-93h4-p6c6-58pw