Skip to content
Threat Brief

← All advisories

CVE-2026-106431

Medium 5.9No known exploitationFix available

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

Record last updated

CVSS score

5.9

Medium on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.2%

Higher than 4% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-787

Patching and mitigation

Patch status
Fix available (source: Microsoft MSRC)
Fix documented (source date)
Mitigation
None documented
Vendor guidance
msrc.microsoft.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Microsoftazl4 mongo-c-driver 1.30.11-5.azl4 on Azure Linux 4.0Not documented0:1.30.15-6.azl4Microsoft MSRC
mongodbc_driverfrom 0.5.0 before 1.30.131.30.13NIST NVD
mongodbc_driverfrom 2.0.0 before 2.5.62.5.6NIST NVD

Timeline

  1. Advisory

    Microsoft advisory published

    Source: Microsoft MSRC (opens in a new tab)

  2. Patch

    Fix documented by Microsoft MSRC

    Source: Microsoft MSRC (opens in a new tab)

Vendor guidance and references