CVE-2026-106437: Out-of-bounds read and write via undersized BSON buffer reservation in MongoDB C Driver

Published Oct 8, 2026
·
Updated

The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who can influence the length supplied by an embedding application can cause the application to terminate or read or corrupt adjacent process memory. Reaching this issue requires the application to pass an undersized value to bsonreservebuffer and then perform an affected operation.

Affected Software

1 affected component
MongoDB MongoDB C driver

Event History

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

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications embedding the MongoDB C Driver are exposed only if they call bson_reserve_buffer with a length smaller than the five-byte BSON minimum and subsequently perform an affected append or comparison operation. The issue is triggered by application use of the buffer-reservation API rather than by the description alone indicating all driver use is affected.

2

What must an attacker be able to do to exploit it?

An attacker must be able to influence the length that the embedding application passes to bson_reserve_buffer. Exploitation also depends on the application later invoking an affected append or comparison operation using that undersized reservation.

3

What can happen if the vulnerable path is reached?

Unsigned length calculations can underflow, causing reads or writes outside the BSON document buffer. This can terminate the application or expose or corrupt adjacent process memory.

4

What mitigation is available if patching cannot be performed immediately?

Ensure the application never passes a buffer length below the five-byte BSON minimum to bson_reserve_buffer. Review callers whose reservation length is derived from external or otherwise untrusted input, and prevent affected append or comparison operations from running after an undersized reservation.

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