CVE-2026-13077

High

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.

SeverityHigh
CVSS7.1
Exploit probability36. percentile0.4%
ProductMongodb
PublishedJul 22, 2026
First seenJul 22, 2026

How to fix

Update
  • mongodb mongodb7.0.39, 8.0.28, 8.2.12, 8.3.7 or later

Affected products

ProductAffected versionsFixed in
mongodb mongodb7.0.0 ≤ v < 7.0.39, 8.0.0 ≤ v < 8.0.28, 8.2.0 ≤ v < 8.2.12, 8.3.0 ≤ v < 8.3.77.0.39, 8.0.28, 8.2.12, 8.3.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-13077 · Mongodb · Dark Radar