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

- Severity: Medium 6.9 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-09-17T20:34:57.703Z
- Modified: 2026-09-25T20:32:52.170Z
- Weaknesses: CWE-191
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- MongoDB Inc. C Driver: from 2.0.0 before 2.3.1
- mongodb c_driver: from 2.0.0 before 2.3.1

## Every score

- mongodb: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://jira.mongodb.org/browse/CDRIVER-6343> (permissions-required)

## Sources

- CVE List: [CVE-2026-93395](https://www.cve.org/CVERecord?id=CVE-2026-93395), CVE Terms of Use, modified 2026-09-18
- NVD: [CVE-2026-93395](https://nvd.nist.gov/vuln/detail/CVE-2026-93395), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2026-93395 · Whole record: https://cve.day/CVE-2026-93395.json · Rebuilt by cve.day 2026-11-25T22:59:39.527Z
