1. Home
  2. Vulnerabilities
  3. CVE-2026-106431

CVE-2026-106431

One-byte heap buffer overflow in BSON bulk document writer in MongoDB C Driver

Published 8 Oct 2026 · modified 17 Nov 2026 · Sources: NVD, CNA (vendor or assigner), EPSS (FIRST)

Low 30/100

Summary

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 products and versions

Mongodb (4 line(s))
Mongodb
ProductVersionsFixed inSource
C# driver from 0.5.0 (included) to 1.30.13 (excluded) — CNA (vendor or assigner)
C# driver from 2.0.0 (included) to 2.5.6 (excluded) — CNA (vendor or assigner)
C# driver from 0.5.0 (included) to 1.30.13 (excluded) — NVD
C# driver from 2.0.0 (included) to 2.5.6 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
NVD
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H (CVSS 3.1, NVD)
Weakness
CWE-787 · Corruption mémoire

How this data is obtained and calculated