CVE-2026-106437
Out-of-bounds read and write via undersized BSON buffer reservation in MongoDB C Driver
- State
- Published
- Severity
- 5.9 Medium
- Published
- Oct 8, 2026
- Updated
- Oct 8, 2026
- Reserved
- Oct 6, 2026
Description
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 bson_reserve_buffer and then perform an affected operation.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.9 Medium | CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N | mongodb |
| 3.1 | 6.2 Medium | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H | mongodb |
Weaknesses
- CWE-191 Integer Underflow (Wrap or Wraparound)
Affected Products
| Product | Versions |
|---|---|
C DriverMongoDB |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.