Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid read-only MongoDB credentials
-
DeliveryConnect to MongoDB Server over network
-
ExploitCraft aggregation pipeline invoking internal write-capable stage
-
ExecutionSubmit pipeline via standard MongoDB client
-
PersistServer executes embedded write without authorization check
-
ImpactModify restricted collection data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
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 | Exploitation requires a valid MongoDB account holding at minimum read-level privileges on the target instance (PR:L per CVSS 4.0 vector). The attacker must have network access to the MongoDB Server and the ability to submit aggregation pipeline commands - this is standard MongoDB client functionality, not a special administrative interface. The specific condition enabling exploitation is knowledge of an internal aggregation stage name that the server does not restrict to internal invocations only; the stage itself accepts embedded write operations that bypass the caller's authorization context. Exploitation is bounded by authentication: unauthenticated network access to MongoDB alone is insufficient - valid credentials are required. No special server configuration, non-default feature flag, or elevated starting privilege beyond a basic read role is indicated. The non-disclosure of the specific internal stage name in public reporting provides marginal obscurity friction but is not a reliable security control. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) characterizes this as a low-complexity, network-reachable flaw requiring only a low-privilege authenticated session - the lowest realistic credential tier in a MongoDB deployment. The VI:H metric confirms high integrity impact: an attacker can corrupt, insert, or delete data in collections where they hold only read rights, which can have severe downstream application consequences. VC:N and VA:N limit the scope to integrity-only, ruling out direct data exfiltration or service disruption through this vector alone. EPSS data was not supplied, so quantitative exploitation probability cannot be stated. The absence of a CISA KEV listing and no identified public exploit code are moderating signals, but the low exploitation bar - any read-level credential suffices - means insider threats, credential-stuffing victims, or deliberately provisioned low-privilege service accounts all represent viable attack paths. MongoDB is widely deployed as a backend data store in enterprise and SaaS environments, amplifying the potential impact across affected installations. The missing version boundary in CPE data is a notable gap: administrators cannot yet determine from NVD alone whether their specific MongoDB Server release is vulnerable. |
| Exploit ScenarioDerived | An attacker who has obtained a low-privilege read-only MongoDB account - through credential stuffing, a compromised application service account, or deliberate provisioning - connects to the MongoDB Server over the network and submits a crafted aggregation pipeline that references the internal write-capable stage. The server processes the pipeline and executes the embedded write operation without verifying the caller's write authorization, allowing the attacker to insert, modify, or delete documents in a restricted collection. No public proof-of-concept code has been identified at time of analysis, but the attack requires only standard MongoDB client tooling and knowledge of the internal stage identifier. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Privilege escalation in MongoDB Server's aggregation framework allows any authenticated read-only user to perform unauthorized write operations against collections they lack write access to. The root cause is an internal-use aggregation stage reachable by external clients without an authorization check on its embedded operations (CWE-862: Missing Authorization). No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV, though the low privilege bar makes any compromised or malicious read-only account a viable threat actor.
RemediationAI
Monitor the MongoDB JIRA ticket SERVER-129936 (https://jira.mongodb.org/browse/SERVER-129936) for patch release announcements, as no specific fixed version was confirmed in the available data. Vendor-released patch version is not independently confirmed at time of analysis - do not assume patching is available until a tagged release is confirmed. As an interim compensating control, audit all database user roles and revoke read privileges from any account that does not strictly require them, reducing the pool of accounts capable of reaching the vulnerable stage. Consider restricting aggregation pipeline execution to specific trusted application-tier IP addresses via MongoDB network access controls or firewall rules, accepting the trade-off that this may complicate ad-hoc query access for analysts. Role-based access control (RBAC) hardening will not fully mitigate the vulnerability for legitimate read users but limits lateral exposure.
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's aggregation framework processes data through a pipeline of discrete stages (e.g., $match, $group, $lookup). Certain stages are designated internal-use only and are intended to be invoked exclusively by the server itself during internal operations. CWE-862 (Missing Authorization) applies when software fails to verify that a caller has the necessary privileges before executing a sensitive operation. Here, at least one such internal stage can be reached via the standard external aggregation interface, and when invoked, it executes embedded write operations without consulting the caller's authorization context. The CPE string cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* uses a full wildcard, indicating NVD has not yet bounded the affected version range to specific releases. The vulnerability exists at the MongoDB wire-protocol layer, making it reachable over the network by any client session that can authenticate.
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:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable by any authenticated read account (PR:L, AV:N, AC:L); integrity is fully compromised via unauthorized writes; no confidentiality or availability impact applies.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
An issue in MongoDB Server's aggregation framework could allow an authenticated user with only read privileges to perform write operations against collections they should not be able to modify. This is due to an internal-use aggregation stage being reachable by external clients without an appropriate authorization check on its embedded operations.
Executive ViewAI
MongoDB Server's aggregation framework contains a privilege escalation vulnerability (CVE-2026-18704) allowing authenticated read-only users to execute unauthorized write operations on protected collections. Organizations with compromised or malicious read-only accounts face direct risk of data modification and integrity breach without requiring additional exploitation, lateral movement, or elevated credentials. This converts low-privilege database compromise into full write access capability.
No vendor-released patch identified at time of analysis. Implement interim controls: restrict external access to internal aggregation stages via MongoDB administrative settings; enforce strict read-only account credential rotation and lifecycle management; deploy comprehensive logging and real-time alerting for aggregation pipeline operations targeting write-protected collections; add application-layer authorization validation for all database operations; consider temporary read-only account privilege suspension pending patch availability.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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-56906
GHSA-cpxv-jhq7-7xvw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB