Skip to main content

MongoDB Server CVE-2026-9753

| EUVDEUVD-2026-35852 HIGH
Improper Validation of Specified Type of Input (CWE-1287)
2026-06-09 mongodb GHSA-j72p-fv5p-4r63
7.2
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege MongoDB credentials
  2. Delivery
    Connect to mongod aggregate endpoint
  3. Exploit
    Submit pipeline with $_internalApplyOplogUpdate stage
  4. Execution
    Supply malformed binary diff payload
  5. Persist
    Trigger out-of-bounds read or process crash
  6. Impact
    Exfiltrate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv3 – 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)
v2 Jun 09, 2026 - 23:30 cvss changed CVSS 7.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.

v1 Jun 09, 2026 - 23:20 CVSS 8.1

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

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

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'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

Vendor (mongodb) PRIMARY 7.2 HIGH
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

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

Lifecycle Timeline

4
Patch available
Jun 10, 2026 - 02:01 EUVD
Analysis Updated
Jun 09, 2026 - 23:30 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 09, 2026 - 23:30 vuln.today
v2 - CVSS changed
CVSS changed
Jun 09, 2026 - 23:22 NVD
8.1 (HIGH) 7.2 (HIGH)

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 80% exploitable
Social Media
1
Sightings
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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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