CVE-2026-13077 Out-of-Bounds Heap Read in BSON CodeWScope Element Parsing via Malformed BSONColumn Data
HighCVSS 7.1
EPSS 0.42%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| MongoDB Server | >= 7.0, < 7.0.39; >= 8.0, < 8.0.28; >= 8.2.0, < 8.2.12; >= 8.3.0, < 8.3.7 | 7.0.39, 8.0.28, 8.2.12, 8.3.7 | Fixed |
| 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 | 7.0.39, 8.0.28, 8.2.12, 8.3.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB Server | >= 7.0, < 7.0.39 | 7.0.39 |
| MongoDB Server | >= 8.0, < 8.0.28 | 8.0.28 |
| MongoDB Server | >= 8.2.0, < 8.2.12 | 8.2.12 |
| MongoDB Server | >= 8.3.0, < 8.3.7 | 8.3.7 |
| mongodb/mongodb | >= 7.0.0, < 7.0.39 | 7.0.39 |
| mongodb/mongodb | >= 8.0.0, < 8.0.28 | 8.0.28 |
| mongodb/mongodb | >= 8.2.0, < 8.2.12 | 8.2.12 |
| mongodb/mongodb | >= 8.3.0, < 8.3.7 | 8.3.7 |
References
- jira.mongodb.org patch vendor-advisory