CVE-2026-106431
5.9medium
One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver
- Severity
- 5.9medium CVSS:4.0 by mongodb
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MongoDB C Driver | from 0.5.0 before 1.30.13, from 2.0.0 before 2.5.6 | CVE List |
| mongodb c_driver | from 0.5.0 before 1.30.13, from 2.0.0 before 2.5.6 | NVD |
All scores
| mongodb | 5.9medium CVSS:4.0 | 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 |
| mongodb | 5.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
References
| https://jira.mongodb.org/browse/CDRIVER-6418 | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-106431 changed 2026-10-08 | CVE Terms of Use |
| NVD | CVE-2026-106431 changed 2026-11-17 | Public domain |