# CVE-2026-93395: Integer Underflow → Heap Out-of-Bounds Read in \`bson\_new\_from\_buffer()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-17 · Modified: 2026-09-18
- Aliases: UBUNTU-CVE-2026-93395, DEBIAN-CVE-2026-93395
- Record: https://cvemate.com/vulnerability/CVE-2026-93395 · JSON: https://cvemate.com/vulnerability/CVE-2026-93395/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.238%, percentile 15.838%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian mongo-c-driver (Debian): All versions (No fix recorded) \| \< 2.4.0-1
- ubuntu mongo-c-driver (Ubuntu): All versions (No fix recorded)
- mongodb inc. c driver: ≥ 2.0.0, \< 2.3.1
- mongodb c driver: ≥ 2.0.0, \< 2.3.1

## References

- <https://jira.mongodb.org/browse/CDRIVER-6343>
- <https://ubuntu.com/security/CVE-2026-93395>
- <https://www.cve.org/CVERecord?id=CVE-2026-93395>
- <https://security-tracker.debian.org/tracker/CVE-2026-93395>

---

Data as of 2026-12-05T04:38:55.338Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
