Skip to main content

CVE-2026-103965: CWE-94: Improper Control of Generation of Code ('Code Injection') in MongoDB MongoDB Server

0
Medium
VulnerabilityCVE-2026-103965cvecve-2026-103965cwe-94
Published: 10/13/2026 (10/13/2026, 15:33:20 UTC)
Source: CVE Database V5
Vendor/Project: MongoDB
Product: MongoDB Server

Description

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.

CVSS v4.0

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

MongoDB

MongoDB Server

Affected versions
>=8.3.0 <8.3.13>=8.0 <8.0.34>=7.0 <7.0.45>=9.0 <9.0.4
GitHub Actionsmore threats →ai
mongodb/mongo
pkg:github/mongodb/mongo
Affected versions
>=7.0 <7.0.45>=8.0 <8.0.34>=8.3.0 <8.3.13>=9.0 <9.0.4

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/13/2026, 16:04:07 UTC

Technical Analysis

This vulnerability involves improper control of code generation (CWE-94) within MongoDB Server's aggregation framework. Specifically, during internal query rewriting, certain constant values can be incorrectly handled, leading to unintended field values being returned in aggregation query results. The flaw requires an authenticated user with read privileges to exploit and does not require user interaction. The CVSS 4.0 base score is 5.3 (medium severity), reflecting network attack vector, low complexity, no privileges required beyond read access, and limited impact on confidentiality and integrity. Affected versions include MongoDB Server versions >=7.0 <7.0.45, >=8.0 <8.0.34, >=8.3.0 <8.3.13, and >=9.0 <9.0.4.

Potential Impact

An authenticated user with read access may receive unintended field values in aggregation query outputs, potentially exposing data not intended by the query. The impact is limited to confidentiality and integrity with low severity as per CVSS 4.0. There is no indication of privilege escalation or denial of service. No known exploits are reported in the wild.

Mitigation Recommendations

No explicit patch links or vendor advisory details are provided in the input. Patch status is not yet confirmed — check the official MongoDB vendor advisory for current remediation guidance. Until patched, restrict read access to trusted users only and monitor for unusual aggregation query results.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
mongodb
Date Reserved
2026-10-01T15:53:56.581Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ace52f62cdf04f65680e4f5

Added to database: 10/13/2026, 15:49:10 UTC

Last enriched: 10/13/2026, 16:04:07 UTC

Last updated: 10/13/2026, 16:49:17 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses