CVE-2026-106431
Medium 5.9No known exploitationFix availableOne-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 4% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-787
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- None documented
- Vendor guidance
- msrc.microsoft.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl4 mongo-c-driver 1.30.11-5.azl4 on Azure Linux 4.0 | Not documented | 0:1.30.15-6.azl4 | Microsoft MSRC |
| mongodb | c_driver | from 0.5.0 before 1.30.13 | 1.30.13 | NIST NVD |
| mongodb | c_driver | from 2.0.0 before 2.5.6 | 2.5.6 | NIST NVD |
Timeline
Advisory
Microsoft advisory published
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- https://jira.mongodb.org/browse/CDRIVER-6418 (opens in a new tab)vendor advisory