# CVE-2026-106431: One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver

- Severity: Medium 5.9 (CVSS:4.0, scored by mongodb) `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`
- 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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-10-08T18:40:32.206Z
- Modified: 2026-11-17T20:03:58.747Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- MongoDB C Driver: from 0.5.0 before 1.30.13; from 2.0.0 before 2.5.6
- mongodb c_driver: from 0.5.0 before 1.30.13; from 2.0.0 before 2.5.6

## Every score

- mongodb: CVSS:4.0 5.9 Medium `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: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H`

## References

- <https://jira.mongodb.org/browse/CDRIVER-6418> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-106431](https://www.cve.org/CVERecord?id=CVE-2026-106431), CVE Terms of Use, modified 2026-10-08
- NVD: [CVE-2026-106431](https://nvd.nist.gov/vuln/detail/CVE-2026-106431), Public domain, modified 2026-11-17

---

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