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

One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver

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

Summary

An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • MongoDB C Driver

    From 0.5.0 · fixed in 1.30.13; From 2.0.0 · fixed in 2.5.6

References 1

jira.mongodb.org