What’s Vulnerable › Vulnerabilities
CVE-2026-93395: Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-17 · updated 2026-09-25
- Weakness: CWE-191
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 products
- MongoDB C# Driver: from 2.0.0 before 2.3.1 — fixed in 2.3.1
How to fix
Upgrade to a fixed version: MongoDB C# Driver 2.3.1. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-93395 or the next vulnerability affects your stack