CVE-2026-13077

Severity CVSS v4.0:
HIGH
Type:
CWE-125 Out-of-bounds Read
Publication date:
22/07/2026
Last modified:
18/08/2026

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* 7.0.0 (including) 7.0.39 (excluding)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* 8.0.0 (including) 8.0.28 (excluding)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* 8.2.0 (including) 8.2.12 (excluding)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:* 8.3.0 (including) 8.3.7 (excluding)


References to Advisories, Solutions, and Tools