Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MongoDB as low-privileged user
-
DeliveryRace or sequence connection pool reuse
-
ExploitMongoDB reuses LDAP connection with stale prior identity
-
ExecutionLDAP directory returns elevated group memberships
-
PersistMongoDB assigns unintended high-privilege roles
-
ImpactAccess sensitive data or admin operations beyond authorization policy
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | LDAP external authorization must be explicitly enabled in MongoDB's configuration (net.tls, security.ldap settings) - this is a non-default, enterprise-specific deployment mode. Connection pooling for LDAP connections must be active (default behavior when LDAP integration is enabled). The attacker must be an authenticated MongoDB user (PR:L), ruling out unauthenticated exploitation. The CVSS 4.0 AT:P metric indicates a specific timing or sequencing condition must hold: the attacker's request must land on a pooled connection that carries a stale LDAP bind identity from a different (higher-privileged) prior session. Deployments using local/SCRAM authentication only, or those without LDAP authorization configured, are completely unaffected regardless of MongoDB version. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N) scores 7.6 (High). The AT:P (Attack Requirements: Present) metric is the key moderating factor - exploitation is not universally repeatable against any LDAP-enabled deployment, but requires a specific race or sequencing condition in the connection pool. PR:L confirms authentication is required. The VC:H and VI:H impact metrics reflect that a successful exploit grants the attacker a different (presumably higher-privileged) LDAP identity, with potential read and write access beyond their authorization. No KEV listing and no public exploit code identified, which significantly lowers near-term practical risk. EPSS data is not provided. The vulnerability is configuration-dependent: LDAP authorization is a non-default enterprise feature, materially narrowing the exposed population. Organizations not using MongoDB's LDAP external authorization are entirely unaffected. For those who are, the risk warrants priority patching given the confidentiality and integrity impact, but automated mass exploitation is not a present concern. |
| Exploit ScenarioDerived | An authenticated low-privileged MongoDB user initiates a connection at a moment when a recently freed pooled LDAP connection - previously bound to a higher-privileged user's identity - is reassigned to their session. MongoDB's authorization layer queries the LDAP directory using the stale bind identity, receives the prior user's group memberships, and grants the attacker elevated roles (e.g., read access to sensitive collections or administrative functions). No public proof-of-concept exists; reliable exploitation likely requires knowledge of connection pool timing or high request concurrency to force pool reuse under a mismatched identity. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Incorrect authorization in MongoDB Server's LDAP integration allows an authenticated user to acquire elevated privileges by exploiting stale identity retention in pooled LDAP connections. When LDAP-based authorization is configured and connection pooling is active, a reused connection may carry a prior user's LDAP identity into subsequent authorization queries, causing MongoDB to assign roles intended for a different directory principal. The result is unintended privilege escalation - a lower-privileged user may gain read or write access to data or administrative functions scoped to a higher-privileged LDAP group. No public exploit code exists and this CVE is not listed in CISA KEV at time of analysis.
RemediationAI
The primary remediation is to apply MongoDB's vendor-released patch once confirmed via the Jira tracker SERVER-130785 (https://jira.mongodb.org/browse/SERVER-130785); a specific fixed version is not independently confirmed from available references and should be verified against MongoDB's official release notes or security advisories. As a compensating control for organizations that cannot patch immediately, disabling LDAP connection pooling - if MongoDB's configuration exposes a tunable for pool reuse - would eliminate the stale-identity condition at the cost of increased LDAP query latency and load on the directory server. Alternatively, if elevated LDAP privilege mapping is not required, restricting MongoDB LDAP role mappings to the principle of least privilege limits the blast radius if stale identity assignment occurs. Organizations not using LDAP external authorization are unaffected and require no action.
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 supports LDAP-based external authorization as an enterprise feature, where after local authentication succeeds, MongoDB queries an LDAP directory to resolve the user's group memberships and map them to MongoDB roles. To reduce latency, MongoDB maintains a pool of persistent LDAP connections. The defect (CWE-863: Incorrect Authorization) occurs when a pooled connection is reused across authentication sessions without properly re-binding or flushing the prior session's identity context. The LDAP directory server therefore answers role-membership queries as if the previous user (whose bind identity the connection still holds) is the requestor, returning role assignments for that stale identity. This is not an authentication failure - the requesting user authenticated correctly - but the authorization step executes under the wrong LDAP principal. The affected CPE is cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* (all versions per wildcard; exact affected range not specified in available data). The CVSS 4.0 AT:P metric confirms that specific attack-timing or configuration conditions must align for exploitation.
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:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
AC:H reflects AT:P (specific connection-pool timing required); PR:L for authenticated user; no availability impact from role misassignment.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A security issue exists in MongoDB's LDAP authorization integration where pooled LDAP connections can retain stale authentication identities after user authentication under certain configurations. Subsequent authorization queries may execute under an unintended LDAP identity rather than the expected one. This can result in incorrect role assignments based on the LDAP directory's access control configuration, potentially allowing an authenticated user to acquire elevated privileges that were not intended by the deployment's authorization policy.
Articles & Coverage 1
Executive ViewAI
A privilege escalation vulnerability in MongoDB Server's LDAP authentication module allows authenticated users to gain unauthorized elevated access to databases and administrative functions intended for higher-privileged directory principals. This directly threatens data confidentiality and integrity for any organization using LDAP-authenticated MongoDB deployments with connection pooling enabled. A vendor patch is available and should be prioritized for immediate deployment.
Apply vendor patch.
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
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-72940
GHSA-7ppp-wj75-4mf7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB