Skip to main content

MongoDB Server EUVDEUVD-2026-98818

| CVE-2026-103965 MEDIUM
Code Injection (CWE-94)
2026-10-13 mongodb GHSA-8w3x-ww8f-273q
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 with read access
  2. Exploit
    Craft aggregation pipeline with constant values
  3. Execution
    Trigger faulty internal query rewrite
  4. Impact
    Receive unintended field values in output

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

Requires an authenticated MongoDB Server user holding read access who issues an aggregation-framework query; the flaw only manifests 'under certain conditions' when constant values are handled during internal query rewriting, so a specifically shaped aggregation pipeline is needed rather than arbitrary queries. Limiting factors: valid credentials with read access are mandatory (no unauthenticated path), impact is confined to disclosure of unintended field values (no write, no code execution, no denial of service), and the triggering conditions are not guaranteed for all pipelines. No special non-default server configuration is identified in the available data.

Impact

This is a medium-severity information-disclosure issue, not the critical RCE the tags imply. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N) scores 5.3 and shows only LOW confidentiality/integrity impact and NO availability impact - inconsistent with the 'RCE'/'Code Injection' tags and the CWE-94 (Code Injection) classification, which all over-state the technical impact; the actual described behavior is leakage of unintended field values during aggregation, a confidentiality problem. Exploitation requires an authenticated user with read access (PR:L), which materially limits the attacker population to those already holding valid database credentials. No EPSS score was provided, the CVE is NOT in CISA KEV, and no public exploit code was identified - the only reference is a MongoDB Jira tracking ticket (SERVER-134618). There is no signal of active exploitation or weaponization. Net: a legitimate bug worth patching during normal maintenance cycles, but not an emergency; the high-threat tags conflict with every quantitative signal and should be disregarded.

Exploit ScenarioDerived

An authenticated user holding only read access constructs an aggregation pipeline that, under specific conditions, triggers the constant-handling flaw in MongoDB's internal query rewriting. The server returns field values the query was not authorized or intended to return, exposing data beyond the user's expected result set. No public proof-of-concept exists, and exploitation depends on the user already having valid credentials with read access.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

AnalysisAIv1 – Oct 13, 2026

Authenticated MongoDB Server users who hold read access can receive field values in aggregation-framework output that their query did not intend to return, because certain constant values are handled incorrectly during internal query rewriting. Exploitation requires valid credentials with read privileges and a specifically shaped aggregation pipeline; there is no unauthenticated path, no write primitive, and no code execution or denial-of-service impact, so this is best treated as a medium-severity information-disclosure issue despite reference tags that mention RCE and code injection. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the assessed CVSS 3.1 score of 5.3 is driven by low confidentiality impact with no integrity or availability effect.

RemediationAI

No vendor-released patch was identified in the available data; the only authoritative tracking source provided is the MongoDB JIRA issue at https://jira.mongodb.org/browse/SERVER-134618, and that issue should be monitored for the fixed release lines and exact patched version numbers before upgrading. Until a fix is published and deployed, the practical compensating controls are privilege-based rather than feature-based, because MongoDB provides no switch to disable the aggregation framework. First, tighten role-based access control so that collection- and database-level read privileges are granted only where operationally required, replacing broad readAnyDatabase roles with narrowly scoped read grants; the trade-off is more administrative overhead and possible friction for legitimate analytics users. Second, where ad-hoc aggregation is not required, expose pre-defined read-only views with fixed pipelines instead of allowing clients to submit arbitrary aggregation queries against raw collections, which removes the attacker's ability to shape the triggering pipeline at the cost of reduced analytical flexibility. Third, enable MongoDB auditing on aggregate commands and project-stage usage and alert on unusual or newly appearing pipeline shapes from accounts that normally do not run aggregation, accepting the storage and performance cost that auditing introduces. Finally, rotate and monitor credentials for read-only accounts, since valid read credentials are a hard prerequisite and limiting their spread directly narrows the attack surface. Do not rely on the RCE and code-injection tags as a guide to severity when prioritising; no code execution, write, or availability impact was confirmed, and no public exploit code or confirmed active exploitation was identified at time of analysis.

Affected VersionsENISA

MongoDB Server 8.0 <8.0.34
MongoDB Server 8.3.0 <8.3.13
MongoDB Server 7.0 <7.0.45
MongoDB Server 9.0 <9.0.4

Affected Packages

euvd mongodb_server fix: 7.0.45, 8.0.34, 8.3.13, 9.0.4

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

The flaw lives in MongoDB Server's aggregation framework, specifically in the query-rewriting stage where the server simplifies or folds constant expressions before execution. When such constants are mishandled during rewriting, the generated internal query can resolve to a different set of projected field values than the pipeline author specified, leaking data that should not have been in the result set. The vendor classifies the root cause as CWE-94 (improper control of generation of code, i.e. 'code injection'), which is what drives the RCE and code-injection tags in the source metadata; however, the assessed impact is a read-scope information disclosure only, so the true weakness class is closer to improper handling of constants leading to unintended data exposure. The CPE entry cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:* is a wildcard with no version boundaries supplied, so the precise affected release range is not determinable from the provided data and must be taken from the vendor JIRA issue SERVER-134618. Note the divergence between the supplied CVSS 4.0 vector (VC:L/VI:L, i.e. low confidentiality and low integrity) and the independent assessment (C:L/I:N/A:N under CVSS 3.1), which is the authoritative view: confidentiality-only, network-reachable, authenticated.

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:L/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 4.3 MEDIUM

Network-reachable database (AV:N) exploited by an authenticated read user (PR:L); impact is limited unintended data disclosure, so C:L with no integrity or availability effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 13, 2026 - 17:03 EUVD
CVE Published
Oct 13, 2026 - 15:33 cve.org
MEDIUM 5.3

DescriptionCVE.org

An issue in MongoDB Server's aggregation framework can cause certain constant values to be handled incorrectly during internal query rewriting. Under certain conditions, an authenticated user with read access may receive field values in aggregation output that the query did not intend to return.

Threat Intelligence Overview

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
Widely deployed enterprise NoSQL database across many production 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.1%
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.

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

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy