CVE-2026-13077 Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data

High 7.1 Published Updated

An authenticated attacker can trigger an out-of-bounds heap read via malformed BSON data, leading to server crashes or disclosure of adjacent memory contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-13077?

CVE-2026-13077 is a high-severity vulnerability in Mongodb Mongodb, published on 22 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-125

Which versions are affected by CVE-2026-13077?

1 open source package ship an affected version, including mongodb. It affects 1 product.

PackageAffectedFixed in
mongodb BitnamiFrom 7.0.07.0.39, 8.0.28, 8.2.12, 8.3.7

Products include Mongodb Mongodb.

How do I fix CVE-2026-13077?

Upgrade mongodb to a fixed version for your release line: 7.0.39, 8.0.28, 8.2.12 or 8.3.7.

Is CVE-2026-13077 being exploited?

There is no known exploitation of CVE-2026-13077 in the wild and no public exploit code.

All Mongodb Mongodb vulnerabilities

Sources

Also known as BIT-mongodb-2026-13077, GHSA-9fpm-hjq6-gj4f, MINI-449q-8mjx-7jm6, MINI-cw5j-hvj6-7h49, MINI-rmrq-rf9w-j9cw, MINI-xcg5-fgcr-vcq5 and 1 more.

Is CVE-2026-13077 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free