Skip to main content
← All vulnerabilities
CVE-2026-13077

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.0.39, 8.0.28, 8.2.12, 8.3.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • MongoDB MongoDB Server

    From 7.0 · fixed in 7.0.39; From 8.0 · fixed in 8.0.28; From 8.2.0 · fixed in 8.2.12; From 8.3.0 · fixed in 8.3.7

References 1

jira.mongodb.org