Skip to main content

MongoDB Server EUVDEUVD-2026-56915

| CVE-2026-18708 MEDIUM
Code Injection (CWE-94)
2026-08-11 mongodb GHSA-6xq3-wv9f-p92j
5.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to MongoDB with write-privileged credentials
  2. Delivery
    Write crafted JavaScript payload as stored document value
  3. Exploit
    Wait for internal maintenance cycle to process stored value
  4. Execution
    Inject code into co-located users' query execution scope
  5. Impact
    Corrupt query results or deny service to victim sessions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated MongoDB database account with write privileges on at least one collection within the targeted MongoDB instance running a vulnerable version (7.0 before 7.0.40, 8.0 before 8.0.29, or 8.3.0 before 8.3.8). The attack is not triggered interactively - the attacker writes the crafted value and relies on MongoDB's internal maintenance cycle to process it, so timing is indeterminate and not directly controlled by the attacker. Per SSVC, the attack is not automatable. The scripting engine sandbox explicitly prevents access to database contents, the host filesystem, or network resources, confining impact to query result corruption and denial of service against co-located database users. Exploitation is not possible against MongoDB instances where server-side JavaScript is disabled (--noscripting or security.javascriptEnabled: false), nor against accounts limited to read-only access.

Impact

The CVSS 4.0 base score of 5.3 (Medium) reflects network accessibility with low attack complexity (AV:N/AC:L) but a mandatory authentication prerequisite with write privileges (PR:L), which materially reduces the attacker pool. Vulnerable system impact is limited to low integrity and low availability (VI:L/VA:L) with no confidentiality impact (VC:N), consistent with the sandbox constraint described. SSVC signals reinforce this: exploitation status is none, the attack is not automatable, and technical impact is rated partial. The 'RCE' tag in source metadata is misleading - the description explicitly constrains execution to the scripting engine sandbox without access to database, filesystem, or network resources, making this a cross-user code injection rather than true remote code execution. Even a mid-sized municipal IT team in mielec managing a shared MongoDB deployment for multiple internal applications should treat remediation as a scheduled priority rather than an emergency, given the authentication barrier and absence of any known active exploitation. EPSS data was not provided in the source intelligence, so exploitation probability cannot be quantified numerically. The primary real-world risk is in multi-tenant or shared-database environments where distinct business units or applications co-exist on a single MongoDB instance and a lower-trust user has write access.

Exploit ScenarioDerived

An authenticated database user with write privileges crafts a malicious JavaScript payload and stores it as a document field value in a collection they control. MongoDB's internal maintenance cycle subsequently processes this stored value through the JavaScript scripting engine in a context shared with other active users, causing the attacker's code to execute within victims' query scopes. The result is corrupted query responses delivered to other users or targeted denial of service against their database operations, while the scripting sandbox prevents the attacker from accessing any underlying data, files, or network resources.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 11, 2026

MongoDB Server's JavaScript scripting engine allows an authenticated user with write privileges to inject code into the query execution scope of other database users via a specially crafted stored value processed during an internal maintenance cycle. Affected versions span the 7.0, 8.0, and 8.3 release lines, with vendor-confirmed patches available. No public exploit code has been identified at time of analysis, and CISA has not listed this in the Known Exploited Vulnerabilities catalog; however, the cross-user integrity and availability impact warrants prompt patching in multi-tenant or shared database environments.

RemediationAI

Upgrade to MongoDB Server 7.0.40, 8.0.29, or 8.3.8 as applicable to your release line; these versions are confirmed by vendor data as containing the fix. The vendor issue tracker at https://jira.mongodb.org/browse/SERVER-130167 should be consulted for any supplementary guidance. If immediate patching is not feasible, disabling server-side JavaScript execution is an effective compensating control: set security.javascriptEnabled: false in the mongod configuration file or launch mongod with the --noscripting flag. The trade-off is that this disables the $where query operator, the $function aggregation operator, mapReduce with JavaScript reducers, and any stored JavaScript functions - applications relying on these features will require refactoring before the flag can be applied. Additionally, enforcing least-privilege write access - ensuring only trusted accounts hold write permissions on shared collections - limits the attacker pool without requiring a service restart.

Affected VersionsENISA

MongoDB Server 7.0 <7.0.40
MongoDB Server 8.0 <8.0.29
MongoDB Server 8.3.0 <8.3.8

Affected Packages

euvd mongodb_server fix: 7.0.40, 8.0.29, 8.3.8

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

CWE-94 (Improper Control of Generation of Code) describes the root cause: MongoDB's server-side JavaScript engine - historically used for features such as $where queries, mapReduce, and stored JavaScript functions - processes stored values during an internal maintenance cycle without sufficient isolation between user execution contexts. When a crafted value is written to a collection, it is later evaluated by the scripting engine in a shared context, allowing the attacker's code to interfere with the query scope of concurrent or subsequent users. The CPE identifier cpe:2.3:a:mongodb:mongodb_server covers all editions across the 7.0, 8.0, and 8.3 lines. Critically, the description notes that MongoDB's scripting sandbox prevents escalation to the underlying database, filesystem, or network - meaning this is a cross-user code injection within the engine's runtime, not a full sandbox escape.

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

Write privileges required (PR:L); sandbox eliminates confidentiality impact (C:N); scope changes because other users' query contexts are affected (S:C).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
4.0 AV:N/AC:L/AT:N/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
None
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
Aug 11, 2026 - 20:19 EUVD
CVE Published
Aug 11, 2026 - 18:41 cve.org
MEDIUM 5.3

DescriptionCVE.org

An issue in MongoDB Server's JavaScript scripting engine could allow an authenticated user with write privileges to cause code they control to be executed within the query scope of other users, through a specially crafted stored value processed during an internal maintenance cycle. This could result in corruption of query results affecting other users and denial of service targeted at their operations on the same database. Impact is limited to the scripting engine's execution sandbox, which does not provide access to database, filesystem, or network resources.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
High
widely deployed NoSQL database across enterprise, cloud, and SaaS environments
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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