Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege MongoDB credentials
-
DeliveryConnect to mongod aggregate endpoint
-
ExploitSubmit pipeline with $_internalApplyOplogUpdate stage
-
ExecutionSupply malformed binary diff payload
-
PersistTrigger out-of-bounds read or process crash
-
ImpactExfiltrate leaked memory or cause database outage
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Specified type validation
|
| Exploitation Conditions | Exploitation requires that the attacker hold an authenticated MongoDB account whose role grants the aggregate command on at least one database (CVSS PR:L confirms low-privilege authentication is needed, not anonymous access), and that the mongod instance be reachable on its TCP listener from the attacker's network position (AV:N, AC:L, UI:N - no user interaction or special access conditions beyond credentials). The specific technical prerequisite is the ability to invoke the $_internalApplyOplogUpdate aggregation pipeline stage with attacker-controlled binary diff content; this stage is reachable from any user with aggregate command privileges and does not require replica-set membership, admin role, or featureCompatibilityVersion changes. Limiting factors are the credential requirement and that environments where aggregate is restricted to trusted application service accounts substantially reduce attacker reachability. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:L/UI:N with VC:H and VA:H captures the dual impact: high confidentiality loss from out-of-bounds memory reads plus high availability loss from server crashes, scored 7.2. PR:L confirms authenticated exploitation is required, which limits exposure to environments where attackers already possess credentials or have compromised an application service account - a common scenario via stolen connection strings or SSRF against internal APIs. EPSS and KEV data were not provided in the input, so probability of exploitation and active-exploitation status cannot be quantified; the 'Denial Of Service' tag aligns with the availability impact, but the memory-disclosure dimension elevates this above a pure DoS, since leaked memory could contain session state, query results from other tenants, or cryptographic material. Real-world priority is moderate-to-high for any internet-reachable or multi-tenant MongoDB cluster and lower for hardened deployments where only trusted application identities can issue aggregate commands. |
| Exploit ScenarioDerived | An attacker who has obtained low-privilege MongoDB credentials - for example, through a leaked .env file, SSRF against an internal service, or a compromised CI pipeline - connects to the database and issues an aggregation pipeline containing a $_internalApplyOplogUpdate stage with a deliberately malformed binary diff document. The malformed payload causes mongod to read beyond the diff buffer, returning fragments of process memory in the query response or crashing the server process, which in a non-replicated deployment results in full database outage. No public proof-of-concept has been identified at time of analysis, but the technique is straightforward to weaponize once the malformed diff layout is known. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 09, 2026
Memory disclosure and denial-of-service in MongoDB Server allows any authenticated user with aggregate command privileges to crash the database or read out-of-bounds memory by submitting a malformed binary diff through the $_internalApplyOplogUpdate aggregation pipeline stage. The flaw stems from inadequate validation of the binary diff document structure consumed by an internal oplog replay operator that is unexpectedly reachable from user-facing aggregation queries. No public exploit identified at time of analysis, but the low privilege bar and network attack vector make this a meaningful threat in multi-tenant or shared-credential MongoDB deployments.
Earlier versions of this analysis (2)
Out-of-bounds memory read and server crash in MongoDB Server can be triggered by any authenticated user who submits a crafted aggregation pipeline using the $_internalApplyOplogUpdate stage with a malformed binary diff document. The flaw, reported by MongoDB and tracked in SERVER-124959, allows low-privileged authenticated clients to disclose process memory or denial-of-service the database. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
Out-of-bounds memory read and server crash in MongoDB Server is triggered when an authenticated user invokes the internal $_internalApplyOplogUpdate aggregation pipeline stage with a malformed binary diff. The flaw, reported by MongoDB itself (SERVER-124959), enables any account with aggregate command privileges to leak adjacent memory contents or take down the database node, producing both confidentiality loss and a denial-of-service condition. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
No vendor-released patch identified at time of analysis from the provided data; consult https://jira.mongodb.org/browse/SERVER-124959 for the fix release once MongoDB publishes a patched server build and upgrade to that exact version when available. Until a patched build can be deployed, the most effective compensating control is to revoke aggregate-command privileges from any role that does not strictly require it and audit built-in roles such as read, readWrite, and any custom roles for the find privilege on collections - the trade-off is that legitimate analytics, reporting, and ORM-driven aggregation queries will break for affected principals. Additionally, restrict network reachability of mongod (default 27017) to known application subnets via firewall or bindIp configuration to ensure the PR:L prerequisite cannot be satisfied by opportunistic external attackers who obtain leaked credentials. Monitor mongod logs for unexpected aggregation pipelines referencing $_internalApplyOplogUpdate, since this internal stage should not appear in normal application traffic.
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 $_internalApplyOplogUpdate is an internal aggregation pipeline stage normally used by the replication subsystem to apply oplog (operations log) entries containing compact binary deltas describing document mutations. The vulnerability falls under CWE-1287 (Improper Validation of Specified Type of Input): the stage trusts the structural integrity of the binary diff payload supplied by the caller, and a malformed diff causes the parser to read past allocated buffer bounds, producing either an information-leaking response or a fatal mongod process crash. The CPE cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* indicates the MongoDB Server product is affected across versions, though the upstream tracker (SERVER-124959) is the authoritative source for exact builds.
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:H/SC:N/SI:N/SA:N
Primary rating from Vendor (mongodb) · only source for this CVE.
CVSS VectorVendor: mongodb
Lifecycle Timeline
4DescriptionCVE.org
The $_internalApplyOplogUpdate aggregation pipeline stage can be used to execute a document diff containing a malformed binary diff to return memory out-of-bounds or crash the server. $_internalApplyOplogUpdate can be executed by any authenticated user with access to the aggregate command.
Executive ViewAI
MongoDB Server contains a vulnerability allowing authenticated users with aggregate command privileges to crash the database or extract sensitive data from server memory via malformed binary diff inputs. Organizations operating MongoDB in multi-tenant environments or with shared database credentials face elevated risk of service disruption and confidential data exposure. No vendor-released patch identified at time of analysis.
Until vendor patch available: revoke aggregate command privileges from non-administrative users; implement network segmentation to limit MongoDB accessibility; enable audit logging for all aggregate pipeline operations; establish resource limits (memory, CPU) within container or process isolation to constrain DoS impact; maintain daily verified backups on isolated infrastructure; for multi-tenant deployments, isolate tenant databases by instance or enforce strict tenant credential separation. Monitor anomalous aggregate query patterns in real time.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-35852
GHSA-j72p-fv5p-4r63
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB