CVE-2026-106431

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

State
Published
Severity
5.9 Medium
Published
Oct 8, 2026
Updated
Oct 8, 2026
Reserved
Oct 6, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.05.9 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:Nmongodb
3.15.7 MediumCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:Hmongodb

Weaknesses

Affected Products

ProductVersions
C DriverMongoDB
  • 0.5.0 to before 1.30.13Affected
  • 2.0.0 to before 2.5.6Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.