CVE-2026-106431
Description
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.
How to fix
- MongoDB C Driver1.30.13, 2.5.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| MongoDB C Driver | 0.5.0 ≤ v < 1.30.13, 2.0.0 ≤ v < 2.5.6 | 1.30.13, 2.5.6 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.