CVE-2026-106431
published medium CVSS 4.0 · 5.9One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB | — | C Driver0.5.0 to < 1.30.13 · 2.0.0 to < 2.5.6 · Other versions: unaffected | Affected | Not stated | mongodb |
Description
An off-by-one error in the BSON bulk document writer in the MongoDB C Driver can write one zero byte immediately past a heap allocation when a document ends at a specific buffer boundary. An actor who can influence the size of documents serialized by an embedding application can corrupt adjacent process memory or terminate the process. Reaching this issue requires the application to use the BSON bulk-writer API and produce a precise cumulative document size.
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
- 5.9 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.7 | medium | mongodb · cna | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB | C Driver | 0.5.0 to < 1.30.13 (affected · semver)2.0.0 to < 2.5.6 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-787 CWE-787: Out-of-bounds Write
References
1Provider assertions
2mongodb · cna
One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 788cdf7df8773901f85fdd1709cfde0b48206602a42b6565d4dd3a8ba97de402
- Ingested
- 09 Oct 2026, 16:25:58 UTC
- Source record
- Official CVE record