CVE-2026-106437 Out-of-bounds read and write via undersized BSON buffer reservation in MongoDB C Driver

Medium 5.9 Published Updated

An integer underflow in the MongoDB C Driver allows attackers to cause out-of-bounds memory access, leading to crashes or potential code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-106437?

CVE-2026-106437 is a medium-severity vulnerability in MongoDB C Driver, published on 8 Oct 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The BSON buffer-reservation API in the MongoDB C Driver can record a length smaller than the five-byte BSON minimum. Later append or comparison operations can underflow unsigned length calculations and read or write outside the document buffer. An actor who can influence the length supplied by an embedding application can cause the application to terminate or read or corrupt adjacent process memory. Reaching this issue requires the application to pass an undersized value to bson_reserve_buffer and then perform an affected operation.

Weakness: CWE-191

Which versions are affected by CVE-2026-106437?

It affects 1 product.

Products include Mongodb C Driver.

How do I fix CVE-2026-106437?

Apply the vendor's patch.

Is CVE-2026-106437 being exploited?

There is no known exploitation of CVE-2026-106437 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-106437, UBUNTU-CVE-2026-106437.

Is CVE-2026-106437 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free