CVE-2026-106431: One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver

Published Oct 8, 2026
·
Updated

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 Software

1 affected component
MongoDB C Driver

Event History

Oct 8, 2026
CVE Published
via MITRE·06:40 PM
Data Sourced
via MITRE·06:40 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications embedding the MongoDB C Driver are exposed only if they use the BSON bulk-writer API and serialize documents whose cumulative size can reach the required buffer boundary. Applications that do not use that API are not described as affected.

2

What does an attacker need to exploit it?

An attacker needs to be able to influence the sizes of documents serialized by the embedding application. Exploitation also requires arranging a precise cumulative document size so that a document ends at the affected buffer boundary.

3

What is the potential impact?

The flaw writes a single zero byte immediately past a heap allocation. This can corrupt adjacent process memory or terminate the process.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203