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

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

## Description

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

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
- EPSS: 0.151%, percentile 4.448%, 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) \| \< 1.30.4-1+deb13u5 \| \< 2.5.6-1
- ubuntu mongo-c-driver (Ubuntu): All versions (No fix recorded)
- mongodb c driver: ≥ 0.5.0, \< 1.30.13 \| ≥ 2.0.0, \< 2.5.6

## References

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

---

Data as of 2026-12-05T06:42:48.069Z. 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
