Vulnerability · Published Oct 8, 2026 · Assigned by mongodb

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

Medium 5.7

In plain English

A medium-severity out-of-bounds write in C Driver from MongoDB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.7Medium
Exploit odds (30 days)<0.1%top 99.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12mongo-c-driverno fix listedDEBIAN-CVE-2026-106431
Debian:13mongo-c-driverno fix listedDEBIAN-CVE-2026-106431
Debian:14mongo-c-driver2.5.6-1DEBIAN-CVE-2026-106431
Ubuntu:26.04:LTSmongo-c-driverno fix listedUBUNTU-CVE-2026-106431
Ubuntu:26.10mongo-c-driverno fix listedUBUNTU-CVE-2026-106431

Affected products (as reported)

VendorProductVersions
MongoDB C Driver 0.5.0 – before 1.30.132.0.0 – before 2.5.6

Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

References