Skip to main content

MongoDB Server EUVDEUVD-2026-72947

| CVE-2026-82060 LOW
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-08 mongodb GHSA-q53w-frrr-28f5
2.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to MongoDB with low-privilege credentials
  2. Delivery
    Insert document with operator-shaped shard key value into sharded collection
  3. Exploit
    Document stored without sanitization or rejection by insertion validator
  4. Install
    Change stream consumer with updateLookup mode processes event for that document
  5. C2
    Crafted shard key value embedded unsanitized into internal post-image lookup query
  6. Execute
    Query engine interprets value as operator expression instead of literal equality
  7. Impact
    Consumer receives wrong post-image document or crashes with non-resumable fatal error

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the attacker must hold a valid MongoDB user credential with at minimum insert privileges on a sharded collection (PR:L - unauthenticated exploitation is not possible); (2) the MongoDB deployment must use sharding - a non-default topology requiring deliberate infrastructure provisioning, typically found in large-scale or horizontally-partitioned production environments; and (3) at least one application-layer change stream consumer must be configured with the updateLookup full document lookup option on the affected collection - this is an explicit application-level API configuration choice, not enabled by default. The CVSS 4.0 AT:P (attack requirements present) metric encodes these preconditions. Confidentiality impact is absent (VC:N): no data is exfiltrated to the attacker. The impacts are limited to data integrity (incorrect post-image documents delivered to consumers) and availability (non-resumable fatal errors breaking stream consumers). Non-sharded MongoDB deployments - including standalone instances and replica sets without sharding - are not affected by this vulnerability.

Impact

The CVSS 4.0 base score of 2.3 accurately reflects a limited-impact, precondition-gated vulnerability. The AT:P metric is decisive here - exploitation is gated on sharded collections being deployed and change streams being configured with updateLookup mode, both non-default architectural choices that require deliberate engineering decisions. The PR:L metric confirms that anonymous exploitation is not possible; a valid database credential is a hard prerequisite. Impact is bounded to VI:L and VA:L - consumers receive wrong documents or experience crash-level pipeline interruptions rather than full system compromise or confidentiality breach (VC:N). In practical terms, even a mid-sized municipal IT team in rybnik running MongoDB without sharding enabled would face zero exposure to this specific code path. For organizations that do operate sharded MongoDB clusters with real-time change stream pipelines, the risk is meaningful in a data-integrity sense: any authenticated application service account could inject crafted shard keys that silently corrupt downstream consumers' view of the data. The absence of a CISA KEV listing, absence of public exploit code, and low CVSS score collectively support treating this as a routine patch-cycle priority rather than an emergency response item, while acknowledging that the integrity guarantees of change stream pipelines are genuinely undermined until patched.

Exploit ScenarioDerived

An authenticated MongoDB user with insert privileges on a sharded collection constructs a document whose shard key field contains a MongoDB query operator object (for example, {$gt: ''}) instead of a scalar literal value. The document is accepted by the server despite insufficient shard key validation and is persisted in the sharded collection. Any application consuming a change stream on that collection with the updateLookup option enabled subsequently triggers the vulnerable post-image lookup path, causing the internal query to evaluate the crafted operator expression and return an unintended document to the consumer or raise a non-resumable fatal error that halts the change stream pipeline. No public proof-of-concept exploit code has been identified at time of analysis.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 08, 2026

Change stream data corruption in MongoDB Server (versions 7.0.0-7.0.40, 8.0.0-8.0.29, and 8.3.0-8.3.8) enables authenticated database users to insert documents with operator-shaped objects as shard key values that bypass insertion validation in sharded collections. When downstream change stream consumers operate in updateLookup full document mode, these stored values are embedded unsanitized into internal post-image lookup queries, causing MongoDB's query engine to interpret them as operator expressions rather than literal equality predicates. The practical result is that change stream consumers either receive incorrect post-image documents from unrelated records or encounter non-resumable fatal errors that break real-time data pipelines; no public exploit has been identified and vendor-released patches are available across all three affected release trains.

RemediationAI

Upgrade MongoDB Server to the vendor-released patched versions: 7.0.41 for the 7.0.x release train, 8.0.30 for the 8.0.x release train, or 8.3.9 for the 8.3.x release train, as applicable to the deployed environment. Patch availability is confirmed per the MongoDB vendor advisory tracked at https://jira.mongodb.org/browse/SERVER-131202. If immediate patching is not operationally feasible, a targeted compensating control is to suspend or reconfigure change stream consumers that use the updateLookup full document mode, replacing it with the default mode (which does not perform the vulnerable post-image lookup); this eliminates the exploitable code path at the cost of losing full post-update document content in change events. A secondary mitigation is to restrict insert privileges on sharded collections to only the most trusted, narrowly scoped service accounts, reducing the pool of principals who could introduce crafted shard key values, though this does not close the vulnerability and should not substitute for patching. Change stream consumers should also be instrumented to alert on non-resumable fatal errors, which could indicate attempted exploitation.

Affected VersionsENISA

MongoDB Server 8.0.0 <8.0.30
MongoDB Server 8.3.0 <8.3.9
MongoDB Server 7.0.0 <7.0.41

Affected Packages

euvd mongodb_server fix: 7.0.41, 8.0.30, 8.3.9

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 sharded cluster architecture uses a designated shard key field to route and locate documents across shards. CWE-943 (Improper Neutralization of Special Elements in Data Query Logic) captures the root cause: MongoDB's document-insertion validation path for sharded collections did not reject or sanitize shard key field values that contain MongoDB query operator structure - objects whose keys are '$'-prefixed operator names such as {$gt: ''} or {$in: []}. These operator-shaped values are persisted in the document alongside legitimate data. The vulnerability's triggering surface is the change stream updateLookup option, which instructs MongoDB to perform an additional internal query to fetch the full post-update document image for inclusion in the change event. That internal post-image query construction embeds the stored shard key value verbatim without escaping it as a data literal, so the query execution engine evaluates it as an operator expression, either matching unintended documents or raising fatal query errors. The affected software is identified by CPE cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* spanning three release trains: 7.0, 8.0, and 8.3.

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 2.3 LOW
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 4.2 MEDIUM

Network-reachable but requires authenticated low-privilege user (PR:L) and non-default sharding plus updateLookup preconditions (AC:H); no confidentiality impact (C:N).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

Lifecycle Timeline

2
Patch available
Sep 08, 2026 - 17:02 EUVD
CVE Published
Sep 08, 2026 - 16:12 cve.org
LOW 2.3

DescriptionCVE.org

In MongoDB, insufficient validation of shard key values during document insertion allowed authenticated users to store documents with specially crafted, operator-shaped objects as shard key values in sharded collections. When change stream events for such documents were processed with the updateLookup full document mode, the crafted values were embedded into internal post-image lookup queries without proper sanitization, causing them to be interpreted as query operators rather than literal equality values. This could result in change stream consumers receiving incorrect post-image documents or encountering non-resumable fatal errors.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
High
MongoDB is among the most widely deployed NoSQL databases globally
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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

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