Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to MongoDB with valid credentials
-
DeliveryCraft malformed BSONColumn with forged CodeWScope
-
ExploitSubmit via aggregation pipeline
-
ExecutionBypass wire-level BSON validation on decompress
-
PersistUnchecked size drives OOB heap read
-
ImpactCrash mongod or leak adjacent heap memory
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 an authenticated MongoDB account (CVSS PR:L) with the ability to execute aggregation pipelines against the target, and the attacker must be able to submit crafted BSONColumn data containing a CodeWScope element - the malformed columnar encoding is what bypasses the normal wire-level BSON validation. There is no user interaction and no special client, but exploitation is limited by the authentication requirement (not anonymous/internet-facing) and by needing query paths that reach the BSONColumn decompression code (columnar/time-series style processing). It is not a default-config unauthenticated flaw: an attacker with zero credentials cannot reach the vulnerable accessor. |
| Impact | The signals are moderate and internally consistent rather than alarming. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:H) shows network reach and low complexity, but PR:L means the attacker must already be an authenticated database user, which materially limits the population of potential attackers to insiders or holders of compromised credentials. Impact is asymmetric: availability is High (a reliable crash/DoS of the mongod process) while confidentiality is only Low (bounded, non-targeted heap disclosure) and integrity is None. No EPSS score, KEV listing, or POC was provided, so there is no evidence of active or automated exploitation - this reads as a real but non-emergency issue whose worst realistic outcome is repeatable DoS by an authenticated tenant. Note the one caveat: the vector asserts network vector, but exploitation depends on being able to run aggregation pipelines with authenticated privileges, so 'remote' here means 'remote authenticated', not anonymous internet exploitation. |
| Exploit ScenarioDerived | An authenticated user with a valid but low-privilege database account (for example a compromised application credential in a multi-tenant cluster) crafts an aggregation pipeline that injects malformed BSONColumn data containing a forged CodeWScope element with an oversized length field. When mongod decompresses and reads the element, the unchecked size drives out-of-bounds pointer arithmetic, crashing the server or returning fragments of adjacent heap memory in the query response. No public exploit code is identified at time of analysis, and the low complexity (AC:L) means a working exploit would be straightforward to reproduce once the malformed encoding is understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 22, 2026
Out-of-bounds heap read in MongoDB Server's BSON CodeWScope element accessors lets an authenticated user disclose adjacent heap memory or crash the server (denial of service) by submitting a crafted aggregation pipeline. The exploit path abuses malformed BSONColumn (columnar/compressed BSON) data whose CodeWScope element bypasses the normal wire-level BSON validation, so an unchecked size field is trusted during decompression. There is no public exploit identified at time of analysis and it is not listed in CISA KEV; the CVSS 4.0 base score is 7.1, driven mainly by high availability impact.
RemediationAI
No vendor-released patch version is identified in the provided data, so the primary action is to consult MongoDB advisory/ticket SERVER-129103 (https://jira.mongodb.org/browse/SERVER-129103) for the fixed release and upgrade mongod to it once published. As compensating controls while a patch is pending: enforce least-privilege authorization so only trusted roles can run aggregation pipelines, and revoke or tighten any application/service accounts that do not require ad-hoc aggregation access (trade-off: may break applications that rely on rich pipeline queries); restrict network exposure of mongod to trusted application tiers only, so the authenticated attack surface is minimized; and monitor for repeated mongod crashes/restarts as an indicator of attempted exploitation. Because the vulnerability is reached through legitimate authenticated query paths, there is no clean feature toggle to disable BSONColumn decompression without affecting time-series/columnar workloads, so credential hygiene and privilege reduction are the most effective interim measures.
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 flaw sits in MongoDB's BSON parsing layer, specifically the accessor functions for the BSON CodeWScope type (a JavaScript code string bundled with a variable scope document). Normally elements arriving over the wire are validated, but BSONColumn - the compressed columnar encoding used for time-series and columnar storage - is decompressed after that validation boundary. An attacker embeds a forged CodeWScope element inside BSONColumn data; when decompressed, its declared size value is used directly in pointer arithmetic without a bounds check. This is a classic CWE-125 (Out-of-bounds Read): the length prefix is attacker-controlled and trusted, so the reader walks past the end of the heap allocation, either faulting (crash) or returning neighbouring heap bytes to the caller. No specific fixed CPE range is provided in the source data, so the exact affected server versions must be confirmed against the MongoDB advisory.
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:H/SC:N/SI:N/SA:N
Authenticated network user running aggregation pipelines (PR:L, AV:N, AC:L); bounded heap disclosure (C:L), no integrity impact, reliable crash gives A:H.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
2DescriptionCVE.org
A missing bounds check in the BSON CodeWScope element accessors allows an attacker to trigger an out-of-bounds heap read via a crafted aggregation pipeline. The vulnerability can be exploited by an authenticated user by generating a malformed BSONColumn data containing a CodeWScope element, bypassing wire-level BSON validation. When the forged element is decompressed, the unchecked size value is used in pointer arithmetic, causing either a server crash or disclosure of adjacent heap memory contents.
Executive ViewAI
MongoDB Server is vulnerable to denial-of-service attacks and potential data exposure through crafted aggregation queries submitted by authenticated users. The vulnerability affects organizations running MongoDB with active aggregation workloads and threatens both service availability and data confidentiality. No patch is currently available from the vendor.
Restrict aggregation pipeline access to authorized applications only; disable BSONColumn compression if workload permits; implement network segmentation isolating MongoDB from untrusted systems; enable MongoDB audit logging for all aggregation operations and establish alerting for malformed BSON structures, unexpected process crashes, or out-of-memory events; maintain a hotfix deployment queue to apply patches within 48 hours of vendor release.
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
Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or
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
EUVD-2026-47784
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB