CVE-2026-93395
6.9medium
Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
- Severity
- 6.9medium CVSS:4.0 by mongodb
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mongodb
Description
A missing lower-bound validation in the bson_new_from_buffer() function of libbson allows an integer underflow when processing BSON data with a zero-length prefix. The function reads a 32-bit document length from the input buffer but does not verify that the value is at least 5 (the minimum valid BSON document size) before using it in an array index calculation. When the length field is zero, the expression used to check the document's null terminator wraps to UINT32_MAX, causing a heap out-of-bounds read that crashes the process. An unauthorized party who can supply crafted BSON input to an application using this API can cause a denial of service.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB Inc. C Driver | from 2.0.0 before 2.3.1 | CVE List |
| mongodb c_driver | from 2.0.0 before 2.3.1 | NVD |
All scores
| mongodb | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| mongodb | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
References
| https://jira.mongodb.org/browse/CDRIVER-6343 | permissions-required | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-93395 changed 2026-09-18 | CVE Terms of Use |
| NVD | CVE-2026-93395 changed 2026-09-25 | Public domain |