Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege MongoDB credentials
-
DeliveryConnect via MongoDB wire protocol (TCP/27017)
-
ExploitCraft malicious aggregation pipeline targeting restricted collection
-
ExecutionAuthorization subsystem approves mismatched permitted operation
-
PersistExecution engine reads unauthorized collection data
-
ImpactExfiltrate collection contents from aggregation response
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 | Exploitation requires a valid MongoDB account with at minimum a low-privilege role providing some form of access within the target database - for example, a read-only grant on any single collection. The attacker must be able to reach the MongoDB wire protocol endpoint (default TCP/27017) to submit aggregation requests. Environments where all authenticated users are fully trusted or where all users share equivalent data access rights face negligible additional risk from this vulnerability. The impact is limited strictly to unauthorized data reads (confidentiality); no write access, privilege escalation beyond data disclosure, or denial-of-service capability is described. Exploitation is bounded to the target database containing the unauthorized collections and does not grant access to the MongoDB admin database or cross-database data unless those collections are directly accessible through the crafted pipeline. Only MongoDB Server versions 7.0.0-7.0.40 and 8.0.0-8.0.29 are confirmed affected. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) reflects a network-accessible, low-complexity vulnerability requiring only low privileges, with high confidentiality impact and no integrity or availability impact; the resulting score of 7.1 (High) is consistent with the described behavior. The low attack complexity (AC:L, AT:N) means that once an attacker has valid credentials - even a minimal-privilege read account - exploitation is not technically demanding. There is no EPSS data provided, no CISA KEV listing, and no known public proof-of-concept, which currently limits automated mass exploitation. However, the privilege bar is low enough that insider threats, compromised service accounts, or attackers who have obtained any valid credential through phishing or credential stuffing would have a viable path to collection-level data exfiltration. Even a mid-sized municipal IT team in zabrze running MongoDB as a multi-tenant data store should treat this as urgent if data segregation by role is a security control in their architecture, since the High confidentiality impact means an attacker could read collections they were explicitly denied access to. The absence of integrity and availability impact appropriately caps the ceiling - this is a data disclosure risk, not a service disruption or data destruction risk. |
| Exploit ScenarioDerived | An attacker holding a low-privilege MongoDB account - such as a read-only account scoped to a single collection - connects to the MongoDB server and submits a specially crafted aggregation pipeline that confuses the authorization subsystem into approving the request as if it targeted only the permitted collection, while the execution engine reads data from a different, restricted collection. The attacker then receives the unauthorized collection data in the aggregation response. No public proof-of-concept has been identified, but the mechanism relies on aggregation pipeline knowledge rather than memory corruption or exotic primitives, making development of a working exploit feasible for a skilled attacker. |
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 aggregation framework allows an authenticated low-privilege user to craft a specially formatted aggregation request that causes the authorization subsystem to evaluate a different operation than what the execution engine actually runs, resulting in unauthorized read access to collection data within the target database. Affected versions span MongoDB Server 7.0.0-7.0.40 and 8.0.0-8.0.29; vendor-released patches are available at 7.0.41 and 8.0.30 respectively. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis, though the low privilege requirement and network accessibility elevate the realistic threat in multi-tenant or role-segregated MongoDB deployments.
RemediationAI
Upgrade MongoDB Server to version 7.0.41 or later on the 7.0.x branch, or to 8.0.30 or later on the 8.0.x branch; vendor patch availability is confirmed. Refer to https://jira.mongodb.org/browse/SERVER-132275 for patch details. For environments where immediate patching is operationally infeasible, harden role-based access control by auditing all user roles to ensure minimal-privilege accounts are restricted to specific collections with the narrowest required grants - removing any unnecessary aggregation-related role assignments reduces the attack surface. Enabling MongoDB's built-in audit logging for aggregation operations (auditLog with filter on aggregate commands) can help detect anomalous cross-collection reads during the patch window, though this carries a performance overhead and does not prevent exploitation. Network-level controls (firewall rules restricting port 27017 access to trusted application hosts only) reduce the pool of potential attackers but do not remediate the underlying flaw.
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's aggregation framework provides a pipeline-based query engine allowing complex data transformations across collections. The root cause is CWE-863 (Incorrect Authorization): the authorization subsystem evaluates which operations a user is permitted to perform, but a discrepancy exists between the operation the authorizer inspects and the operation the execution engine actually carries out when processing a crafted pipeline. This authorization-execution mismatch allows the server to be tricked into permitting a read that the authorizer would otherwise deny. The affected CPE is cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:*, covering both the 7.0.x and 8.0.x major release lines. The MongoDB wire protocol (default port 27017) is the delivery channel. This vulnerability class - sometimes described as an authorization path confusion or TOCTOU-style bypass in access control evaluation - is well understood but difficult to detect without detailed audit logging of aggregation operations.
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:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-accessible via wire protocol, low complexity, requires authenticated low-privilege account; impact confined to confidentiality with no integrity or availability effect.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
MongoDB Server contains an incorrect authorization vulnerability in the aggregation framework. An authenticated user with minimal privileges can craft a specially formatted aggregation request that causes the server's authorization subsystem to evaluate a different operation than what is actually executed, resulting in unauthorized read access to collection data within the target database.
Articles & Coverage 1
Executive ViewAI
MongoDB Server versions 7.0.0-7.0.40 and 8.0.0-8.0.29 contain an authorization flaw that permits low-privileged database users to bypass access controls and read restricted collections, creating a data confidentiality breach risk in multi-tenant or role-segregated database environments. Organizations relying on database-level privilege separation to isolate sensitive data should treat this as a priority remediation item, particularly where application accounts or internal users have intentionally limited database permissions.
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-72917
GHSA-jxm4-wg55-8759
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB