Skip to main content

MongoDB Server EUVDEUVD-2026-47784

| CVE-2026-13077 HIGH
Out-of-bounds Read (CWE-125)
2026-07-22 cna@mongodb.com
7.1
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to MongoDB with valid credentials
  2. Delivery
    Craft malformed BSONColumn with forged CodeWScope
  3. Exploit
    Submit via aggregation pipeline
  4. Execution
    Bypass wire-level BSON validation on decompress
  5. Persist
    Unchecked size drives OOB heap read
  6. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

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

MongoDB Server 8.0 <8.0.28
MongoDB Server 8.3.0 <8.3.7
MongoDB Server 7.0 <7.0.39
MongoDB Server 8.2.0 <8.2.12

Affected Packages

euvd mongodb_server fix: 7.0.39, 8.0.28, 8.2.12, 8.3.7

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

Vendor (mongodb) PRIMARY 7.1 HIGH
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
vuln.today AI 7.1 HIGH

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.

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

Lifecycle Timeline

2
Patch available
Jul 22, 2026 - 21:03 EUVD
CVE Published
Jul 22, 2026 - 20:16 cve.org
HIGH 7.1

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 67% exploitable
Prevalence
High
MongoDB is a widely deployed enterprise and cloud NoSQL database
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

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-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

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-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

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

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