Medium severity · published Sep 17, 2026
CVE-2026-93395
Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
5.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CD
C Driver · MongoDB Inc.
2.0.0 before 2.3.1 · source: vendor, NVD
Affected product
CD
C Driver
MongoDB Inc.
More from C Driver
8.1
CVE-2026-93393
Heap overflow via oversized decrypted TLS record sequence in Windows Secure Channel stream
7.5
CVE-2026-6231
bson_validate may skip validation when processing certain inputs
7.1
CVE-2026-9100
Heap memory out of bounds read and crash in C Driver legacy GridFS file reader
3.7
CVE-2026-93394
libmongoc SCRAM client nonce-validation bypass