Skip to main content

MongoDB Server EUVDEUVD-2026-35867

| CVE-2026-9751 MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-06-09 mongodb GHSA-52qm-pr2g-7h6x
6.8
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain low-privilege local access to MongoDB host
  2. Delivery
    Obtain read access to mongod.log
  3. Exploit
    Wait for admin to invoke setParameter with ldapQueryPassword
  4. Execution
    Extract plaintext LDAP credential from log
  5. Persist
    Authenticate to LDAP directory
  6. Impact
    Enumerate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

MongoDB Server 7.0.0 <7.0.35
MongoDB Server 8.3.0 <8.3.3
MongoDB Server 8.0.0 <8.0.24
MongoDB Server 8.2.0 <8.2.10

Affected Packages

euvd mongodb_server fix: 7.0.35, 8.0.24, 8.2.10, 8.3.3

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

Vendor (mongodb) PRIMARY 6.8 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 10, 2026 - 02:01 EUVD
CVSS changed
Jun 09, 2026 - 23:22 NVD
5.5 (MEDIUM) 6.8 (MEDIUM)

DescriptionCVE.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

EPSS Score
0.0%
Top 98% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

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

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy