← CVE Intelligence

CVE-2026-106431

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

Description (CNA)

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 (CNA)

Vendor / productVersions
MongoDB / C Driveraffected 0.5.0 before 1.30.13; affected 2.0.0 before 2.5.6

CWE

CWE-787

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.