CVE-2026-13077 Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data
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.
| Package | Affected | Fixed in |
|---|---|---|
mongodb Bitnami | From 7.0.0 | 7.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.
Other vulnerabilities in Mongodb Mongodb
- CVE-2025-14847 MongoDB and MongoDB Server Improper Handling of Length Parameter Inconsistency
- CVE-2026-82067 Auth bypass in MongoDB Server
- CVE-2026-13072 MongoDB Improper Input Validation in Compute Mode External Data Processing Leading to Memory Corruption
- CVE-2017-15535 Denial of service in n/a
- CVE-2026-18691 Improper Authentication in MongoDB Intra-Cluster Connections Allows Credential Exposure
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.