CVE-2026-93395
published medium CVSS 4.0 · 6.9Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | C Driver2.0.0 to < 2.3.1 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.3 | medium | mongodb · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | C Driver | 2.0.0 to < 2.3.1 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-191 CWE-191: Integer Underflow (Wrap or Wraparound)
References
1Provider assertions
2mongodb · cna
Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 46ef7e8c999cde44e736f6c08bc6bdf111bb022aaadf289b5d68b91fa2c7a289
- Ingested
- 23 Sep 2026, 09:40:48 UTC
- Source record
- Official CVE record