CVE-2026-13077: CWE-125: Out-of-bounds Read in MongoDB MongoDB Server
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-13077 in MongoDB Server arises from a missing bounds check in the BSON CodeWScope element accessors. An authenticated user can exploit this by submitting a specially crafted aggregation pipeline that includes malformed BSONColumn data with a CodeWScope element. This crafted data bypasses wire-level BSON validation. When the server decompresses this data, it uses an unchecked size value in pointer arithmetic, resulting in an out-of-bounds heap read. The impact can be a server crash or disclosure of adjacent heap memory contents. The vulnerability affects specific MongoDB Server versions: 7.0, 8.0, 8.2.0, and 8.3.0. There is no vendor advisory or patch information available at this time, and no known exploits in the wild have been reported.
Potential Impact
An authenticated attacker can exploit this vulnerability to cause a denial of service via server crash or potentially disclose adjacent heap memory contents, which may lead to information leakage. The vulnerability involves an out-of-bounds read due to missing bounds checks in BSON CodeWScope element accessors during decompression of crafted BSON data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict authenticated user privileges to minimize risk and monitor for unusual activity related to BSON data processing.
CVE-2026-13077: CWE-125: Out-of-bounds Read in MongoDB MongoDB Server
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.
CVSS v4.0
Score 7.1high
Affected software
pkg:github/mongodb/mongoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-13077 in MongoDB Server arises from a missing bounds check in the BSON CodeWScope element accessors. An authenticated user can exploit this by submitting a specially crafted aggregation pipeline that includes malformed BSONColumn data with a CodeWScope element. This crafted data bypasses wire-level BSON validation. When the server decompresses this data, it uses an unchecked size value in pointer arithmetic, resulting in an out-of-bounds heap read. The impact can be a server crash or disclosure of adjacent heap memory contents. The vulnerability affects specific MongoDB Server versions: 7.0, 8.0, 8.2.0, and 8.3.0. There is no vendor advisory or patch information available at this time, and no known exploits in the wild have been reported.
Potential Impact
An authenticated attacker can exploit this vulnerability to cause a denial of service via server crash or potentially disclose adjacent heap memory contents, which may lead to information leakage. The vulnerability involves an out-of-bounds read due to missing bounds checks in BSON CodeWScope element accessors during decompression of crafted BSON data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict authenticated user privileges to minimize risk and monitor for unusual activity related to BSON data processing.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-06-23T18:00:22.313Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6123219c2644c7f89b2d30
Added to database: 07/22/2026, 20:08:01 UTC
Last enriched: 07/22/2026, 20:22:20 UTC
Last updated: 07/22/2026, 23:43:42 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.