Description
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.
Published: 2026-07-22
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

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 requires an authenticated user and bypasses wire‑level BSON validation. When the malformed CodeWScope element is decompressed, the unchecked size value is used in pointer arithmetic, which can cause a server crash or lead to disclosure of adjacent heap memory contents. The flaw is categorized as a runtime memory corruption weakness (CWE‑125).

Affected Systems

The affected product is MongoDB Server. No specific version list is provided, so any deployment running a vulnerable branch of MongoDB Server may be impacted until a vendor patch is applied.

Risk and Exploitability

MongoDB assigns this vulnerability a CVSS score of 7.1, indicating a high severity level. The EPSS score is 0.00241 (<1%), indicating a low but non‑zero exploitation probability. It is not listed in the CISA KEV catalog. The likely attack vector is the authenticated use of an aggregation pipeline that contains a forged CodeWScope element; once the payload is processed by the server, the out‑of‑bounds read can be triggered. The impact includes potential denial of service or data leakage, making the risk significant for environments where untrusted clients can construct custom aggregation queries.

Generated by OpenCVE AI on August 3, 2026 at 23:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update MongoDB Server to the latest version that addresses the CodeWScope out‑of‑bounds heap read bug, as released by the vendor.
  • If an immediate upgrade is not possible, restrict or monitor the use of aggregation pipelines for authenticated users, and block or quarantine any requests that contain malformed BSONColumn data.
  • Monitor system logs for aggregation failures or repeated crashes that may indicate an attempted exploitation of the CodeWScope vulnerability.

Generated by OpenCVE AI on August 3, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 23 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb mongodb Server
Vendors & Products Mongodb
Mongodb mongodb Server

Wed, 22 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
Description 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.
Title Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data
Weaknesses CWE-125
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 7.1, 'vector': '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'}


Subscriptions

Mongodb Mongodb Server
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-07-23T14:19:15.392Z

Reserved: 2026-06-23T18:00:22.313Z

Link: CVE-2026-13077

cve-icon Vulnrichment

Updated: 2026-07-23T14:19:11.440Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-22T20:16:46.517

Modified: 2026-07-23T15:33:09.233

Link: CVE-2026-13077

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T23:30:17Z

Weaknesses