Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain low-privilege local access to MongoDB host
-
DeliveryObtain read access to mongod.log
-
ExploitWait for admin to invoke setParameter with ldapQueryPassword
-
ExecutionExtract plaintext LDAP credential from log
-
PersistAuthenticate to LDAP directory
-
ImpactEnumerate or exfiltrate directory data
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: (1) local access to the MongoDB host with at minimum read permission on the mongod.log file, consistent with the CVSS AV:L/PR:L vector; (2) an administrator must actively use the runtime setParameter command to set or update the ldapQueryPassword parameter - the vulnerability is triggered by this administrative action, not continuously present; (3) LDAP must be configured and in use (ldapQueryPassword is only relevant in LDAP-enabled deployments). Limiting factors include: the attack is strictly local - remote exploitation is not possible per AV:L; the credential is only written at the moment setParameter is invoked, so an attacker must either have persistent log access or be monitoring at the right time; and the vulnerability requires a non-default deployment topology (LDAP authentication enabled). Authentication requirements: CVSS PR:L confirms a low-privileged authenticated local user is sufficient - no elevated OS or MongoDB privileges are needed beyond log file read access. |
| Impact | The CVSS 5.5 Medium score reflects a genuine but bounded threat. The vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N confirms the attack is local-only, requires no elevated privileges, and has no integrity or availability impact - but carries high confidentiality impact due to the LDAP credential being fully exposed. Real-world risk is modulated by several factors: the vulnerability only triggers at the moment an administrator actively reconfigures ldapQueryPassword via setParameter (not a persistent passive exposure unless the log is retained), and exploitation requires the attacker to already have local access and read permission on mongod.log. No EPSS data was provided, no KEV listing exists, and no public exploit has been identified, all consistent with a medium-severity, locally-constrained information disclosure. The primary risk amplifier is lateral movement: a leaked LDAP query credential may grant broad directory read access well beyond the MongoDB host itself, elevating the effective downstream impact despite the moderate CVSS score. |
| Exploit ScenarioDerived | An attacker with a low-privileged local account on the MongoDB host waits for or socially engineers an administrator to issue a setParameter command updating the ldapQueryPassword - a routine operational task during credential rotations or initial LDAP setup. The attacker then reads the plaintext password from mongod.log and uses it to authenticate to the enterprise LDAP/Active Directory server, potentially enumerating users, groups, or other sensitive directory objects across the organization. No public exploit code is required; the attack requires only standard file read access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 09, 2026
Plaintext credential exposure in MongoDB Server allows a local authenticated attacker to retrieve the LDAP query password from log files. When an administrator uses the runtime setParameter command to configure the ldapQueryPassword parameter, MongoDB writes the new password value to mongod.log in cleartext. Any local user with read access to the log file - a broad class on many deployments - can silently capture these credentials and use them to authenticate against or query the connected LDAP directory. No public exploit has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.
RemediationAI
No vendor-released patch version has been independently confirmed at time of analysis - the upstream fix is tracked in MongoDB JIRA SERVER-123370 but no tagged release was referenced. Administrators should monitor that ticket and apply patches as soon as a fixed release is published. As an immediate compensating control, restrict read permissions on mongod.log to only the mongod service account and trusted system administrators, reducing the window of exposure if the password is logged. After any use of setParameter to set ldapQueryPassword, rotate the LDAP query credential immediately to limit the useful lifetime of any captured value. Where operationally feasible, avoid using the runtime setParameter approach entirely and instead configure ldapQueryPassword via the static mongod.conf file followed by a controlled restart, since static configuration changes may not be subject to the same logging behavior. Note that restricting log access does not eliminate the root cause and is not a substitute for patching.
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
MongoDB Server supports LDAP-based authentication and authorization, using an internal LDAP query credential (ldapQueryPassword) to bind to the directory and perform user lookups. The setParameter runtime command allows live reconfiguration of server settings without a restart, a common operational pattern. The vulnerability (CWE-532: Insertion of Sensitive Information into Log File) arises because the logging subsystem records the raw parameter value as part of the command audit trail rather than redacting sensitive fields. The affected product spans all versions per CPE cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:*, meaning no version is confirmed safe from this behavior without an explicit patch. MongoDB JIRA ticket SERVER-123370 tracks the issue.
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
The ldapQueryPassword parameter, when set through the runtime setParameter command, will log the new password to the mongod.log file in plain text.
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-35867
GHSA-52qm-pr2g-7h6x
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB