rewindex

RewindexCVEsMongoDB Atlas

CVE-2026-93395: Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()

Medium · CVSS 5.3 (CVSS 3.1)EPSS 0.40%, 34th percentilePublished Updated Assigner: mongodb

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.

Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L · CWE-191

Tracked companies

MongoDB Atlas

Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.

Status incidents that name it

No tracked status incident names this CVE.

Affected vendors and products

MongoDB Inc.: C Driver

References

All CVEsMarkdownJSON