CVE-2026-93395

published 17 Sep 2026 · updated 18 Sep 2026

Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()

5.3MediumCVSS 5.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in C Driver 2.3.1.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBC Driver>=2.0.0 <2.3.12.3.1

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-93395 severity on Zeptric[![CVE-2026-93395](https://zeptric.io/badge/cve/CVE-2026-93395.svg)](https://zeptric.io/cve/CVE-2026-93395)