CVE-2026-106431

published 8 Oct 2026 · updated 17 Nov 2026

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

5.7MediumCVSS 5.7EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in C Driver 1.30.13 and C Driver 2.5.6.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBC Driver>=0.5.0 <1.30.13, >=2.0.0 <2.5.61.30.13, 2.5.6

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-106431 severity on Zeptric[![CVE-2026-106431](https://zeptric.io/badge/cve/CVE-2026-106431.svg)](https://zeptric.io/cve/CVE-2026-106431)