Integer overflow in MongoDB Inc. C Driver

CVE-2026-93395

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 v3 metric

CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-93395?
CVE-2026-93395 is a medium-severity vulnerability in MongoDB Inc. C Driver, classified under Integer Underflow. CVSS score: 5.3/10. Published 2026-09-17.
How severe is CVE-2026-93395?
Medium severity. CVSS v3 base score is 5.3 out of 10.