Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain MongoDB read/write database credentials
-
DeliveryConnect to MongoDB network port
-
ExploitSubmit crafted malformed query targeting query planner
-
ExecutionTrigger out-of-bounds heap read during plan construction
-
ImpactExtract heap memory fragments from diagnostic statistics in query response
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid MongoDB user account with at minimum read and write privileges on a target database - unauthenticated exploitation is not possible per the CVSS PR:L metric. The attacker must have network connectivity to the MongoDB port (default 27017) and the ability to submit crafted query operations and read query response metadata including diagnostic statistics output. No special non-default server configuration is required beyond the user holding standard read/write database roles. Limiting factors: a valid credential with database-level access must first be obtained; partial memory disclosure through diagnostic fields may require multiple requests and offline analysis to yield meaningful data; network access to MongoDB is typically restricted to internal application tiers in hardened deployments. |
| Impact | The vendor-provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N) scoring 5.3 accurately reflects the moderate severity: network-reachable via the MongoDB protocol, low complexity, but authentication is required (PR:L) and the confidentiality impact is limited to partial heap leakage rather than full memory disclosure. No integrity or availability impact is indicated. This CVE is not listed in the CISA KEV catalog, no public exploit code has been identified, and EPSS data is absent from available sources - all of which align with the authenticated prerequisite that meaningfully raises the bar for opportunistic exploitation. Even a mid-sized database operations team in tczew running internet-adjacent MongoDB deployments should treat this as a normal patch-cycle priority rather than an emergency response, particularly where network access to the MongoDB port is already restricted to application-tier hosts. The primary residual concern is credential-holding insiders or compromised application-service accounts leveraging diagnostic output to probe heap layout - a limited but real threat in multi-tenant or shared-hosting MongoDB environments. |
| Exploit ScenarioDerived | An attacker who has obtained MongoDB credentials with read/write database privileges - through credential theft, a compromised application account, or insider access - connects to the MongoDB server and submits a specially crafted query targeting the query planning component. The malformed query triggers an out-of-bounds heap read, and the attacker inspects diagnostic statistics fields in the server response to extract partial heap memory contents. No public exploit code is known to exist at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Heap out-of-bounds read in MongoDB Server's query planning component allows an authenticated database user with read/write privileges to disclose partial server heap memory contents. Crafted query operations cause the server to read beyond allocated heap buffer boundaries during query plan construction, with leaked memory fragments surfacing through diagnostic query statistics output. Affected releases span MongoDB Server 7.0.0-7.0.40, 8.0.0-8.0.29, and 8.3.0-8.3.8, with fixed versions available across all three branches per vendor advisory SERVER-131562.
RemediationAI
Upgrade to MongoDB Server 7.0.41, 8.0.30, or 8.3.9, which contain the vendor-released fix per JIRA SERVER-131562 (https://jira.mongodb.org/browse/SERVER-131562). Fixed versions are available for all three affected branches, enabling in-place minor-version upgrades without requiring a major version jump. As a compensating control prior to patching, restrict network access to the MongoDB port (default 27017) to only trusted application-tier hosts via firewall or network policy, eliminating remote attacker access even with valid credentials. Additionally, auditing and revoking unnecessary read/write database privileges - applying the principle of least privilege - reduces the pool of accounts capable of triggering the issue. Disabling verbose diagnostic explain output for non-administrative users via MongoDB's role-based access control may further limit observability of any leaked heap fragments, though it does not eliminate the underlying read vulnerability. Patching to a fixed release is the only definitive remediation.
Affected VersionsENISA
Affected Packages
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 vulnerability is rooted in CWE-125 (Out-of-bounds Read) within MongoDB Server's query planning subsystem - the internal engine responsible for parsing, analyzing, and constructing query execution plans. When processing specially crafted query operations, a heap-allocated buffer in the planner is read beyond its allocated bounds. The out-of-bounds memory contents are not returned directly but may leak indirectly through diagnostic statistics fields embedded in query response metadata. The affected CPE is cpe:2.3:a:mongodb:mongodb_server:*:*:*:*:*:*:*:*, covering the 7.0, 8.0, and 8.3 release lines. This is a read-only memory safety violation - no write-based memory corruption primitive or code execution path is described.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable via crafted queries (AV:N/AC:L), requires authenticated low-privilege database user (PR:L), partial heap memory leakage only (C:L), no integrity or availability impact.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A heap out-of-bounds read security issue exists in the query planning component of MongoDB Server. An authenticated user with database read and write privileges can trigger the security issue through crafted query operations, causing the server to read memory beyond allocated buffer boundaries. The revealed memory contents may be partially observable through diagnostic query statistics output.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo
Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa
The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a
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
Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's
The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to
Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong
SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary
MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle
MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e
Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma
EUVD-2026-72953
GHSA-m6gv-qfwj-frx8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB