CVE-2026-106431: CWE-787: Out-of-bounds Write in MongoDB C Driver
Description
CVE-2026-106431 is an off-by-one out-of-bounds write vulnerability in the BSON bulk document writer of the MongoDB C Driver. It occurs when a document ends exactly at a specific buffer boundary, causing one zero byte to be written just past the allocated heap memory. This can lead to adjacent memory corruption or process termination if an attacker can control the size of serialized documents using the BSON bulk-writer API.
CVSS v4.0
Score 5.9medium
Affected software
MongoDB
C Driver
pkg:github/mongodb/mongo-c-driverRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability is an off-by-one error in the BSON bulk document writer component of the MongoDB C Driver. When a document ends at a precise buffer boundary, the driver writes a zero byte immediately beyond the allocated heap buffer, resulting in an out-of-bounds write. Exploitation requires the embedding application to use the BSON bulk-writer API and to produce documents with carefully controlled sizes. The flaw can cause memory corruption or crash the process.
Potential Impact
An attacker who can influence the size of BSON documents serialized by an application using the vulnerable MongoDB C Driver versions can trigger an out-of-bounds write. This may corrupt adjacent process memory or cause the process to terminate unexpectedly. There is no indication of remote exploitability without local access or influence over document sizes. No known exploits are reported in the wild.
Mitigation Recommendations
No official patch or fix is currently documented in the provided data. Users should monitor MongoDB vendor advisories for updates. Until a fix is available, avoid using the BSON bulk-writer API with untrusted input that could produce documents ending at the specific buffer boundary triggering the off-by-one write.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-10-06T16:40:35.016Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac7fef12cdf04f656318c09
Added to database: 10/08/2026, 20:37:05 UTC
Last enriched: 10/08/2026, 20:49:12 UTC
Last updated: 10/08/2026, 20:49:12 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.