๐Ÿ” CVE Alert

CVE-2026-93395

MEDIUM 5.3

Integer Underflow โ†’ Heap Out-of-Bounds Read in `bson_new_from_buffer()

CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-191
Vendor mongodb inc.
Product c driver
Published Sep 17, 2026
Stay Ahead of the Next One

Get instant alerts for mongodb inc. c driver

Be the first to know when new medium vulnerabilities affecting mongodb inc. c driver are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Affected Versions

MongoDB Inc. / C Driver
2.0.0 < 2.3.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
jira.mongodb.org: https://jira.mongodb.org/browse/CDRIVER-6343