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
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.
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
Same technique Information Disclosure
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-35856
GHSA-93h4-p6c6-58pw