PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet
Vulnerability DatabaseCVE-2026-103965

CVE-2026-103965: 
MongoDB vulnerability analysis and mitigation

Overview

CVE-2026-103965 is a vulnerability in MongoDB Server's aggregation framework that causes 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. Affected versions include MongoDB Server 7.0.x before 7.0.45, 8.0.x before 8.0.34, 8.3.x before 8.3.13, and 9.0.x before 9.0.4. It was published on October 13, 2026, with a CVSS v4 base score of 5.3 (Medium) (GitHub Advisory).

Technical details

The root cause is classified as CWE-94 (Improper Control of Generation of Code / Code Injection), arising from a flaw in how MongoDB's aggregation framework handles constant values during internal query rewriting and optimization. When certain aggregation pipelines are processed, the query rewriter incorrectly substitutes or propagates constant values, potentially causing the server to include unintended field values in the output. Exploitation requires an authenticated network connection with at least read-level privileges; no special configuration or user interaction is needed beyond submitting a crafted aggregation query. The MongoDB issue tracker references this as SERVER-134618 (GitHub Advisory).

Impact

Successful exploitation results in limited confidentiality and integrity impacts: an authenticated user with read access may receive field values from documents that the aggregation query was not designed to return, potentially exposing data they are not authorized to view. There is no availability impact, and the vulnerability is scoped to the vulnerable system only with no impact on subsequent systems. While the exposure is limited in scope, in multi-tenant or sensitive data environments this could lead to unauthorized disclosure of restricted fields or documents (GitHub Advisory).

Exploitability

According to available data, there is no known public proof-of-concept exploit code and no evidence of in-the-wild exploitation at the time of disclosure. The EPSS score is 0.0, indicating a very low probability of exploitation in the near term, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. Exploitation is not automatable and requires authenticated access, further limiting the attack surface (GitHub Advisory).

Mitigation and workarounds

MongoDB has released patched versions addressing this vulnerability: 7.0.45, 8.0.34, 8.3.13, and 9.0.4. Users running any affected version (7.0.x, 8.0.x, 8.3.x, or 9.0.x) should upgrade to the respective fixed release as the primary remediation. No specific configuration-based workarounds have been published; restricting aggregation pipeline access to trusted users may reduce exposure until patching is feasible (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Ubuntu

Unknown

bionic (esm-apps)

mongodb

Unknown

focal (esm-apps)

mongodb

Unknown

trusty (esm-infra-legacy)

mongodb

Unknown

xenial (esm-apps-legacy)

mongodb

Unknown

Source: This report was generated using AI

Related MongoDB vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-96299HIGH7.1
  • MongoDB logoMongoDB
  • mongodb
NoYesOct 13, 2026
CVE-2026-104005HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesOct 13, 2026
CVE-2026-104004HIGH7.1
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesOct 13, 2026
CVE-2026-96297MEDIUM6
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesOct 13, 2026
CVE-2026-103965MEDIUM5.3
  • MongoDB logoMongoDB
  • cpe:2.3:a:mongodb:mongodb
NoYesOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management