CVE-2026-13077 Details
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.
A vulnerability exists in MongoDB's BSON handling, specifically within the CodeWScope element accessors. This flaw allows an authenticated user to exploit an out-of-bounds heap read by sending a crafted aggregation pipeline that includes a malformed BSONColumn data with a CodeWScope element. The exploitation bypasses standard wire-level BSON validation. When the tampered element is decompressed, the missing bounds check on the size value leads to unsafe pointer arithmetic, which can cause a server crash or leak adjacent heap memory contents.
Users can upgrade to MongoDB versions 8.2.12, 8.0.28, 7.0.39, 8.3.7, or 9.0.0-rc1 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://jira.mongodb.org/browse/SERVER-129103 | [email protected] | Vendor AdvisoryPatch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mongodb mongodb | >= 7.0.0, < 7.0.39 >= 8.0.0, < 8.0.28 >= 8.2.0, < 8.2.12 >= 8.3.0, < 8.3.7 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 24, 2026 | CVE Translated | [email protected] |
| Aug 18, 2026 | Initial Analysis | [email protected] |
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2026 | New CVE Received | [email protected] |