CVE-2026-106431
JSON

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 packageVersionsReported by
MongoDB C Driverfrom 0.5.0 before 1.30.13, from 2.0.0 before 2.5.6CVE List
mongodb c_driverfrom 0.5.0 before 1.30.13, from 2.0.0 before 2.5.6NVD

All scores

mongodb5.9medium CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
mongodb5.7medium CVSS:3.1CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

Classification

CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-106431 changed 2026-10-08CVE Terms of Use
NVDCVE-2026-106431 changed 2026-11-17Public domain