Integer underflow in MongoDB driver for C - CVE-2026-106437

 

Integer underflow in MongoDB driver for C - CVE-2026-106437

Published: October 25, 2026


Vulnerability identifier: #VU157651
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-106437
CWE-ID: CWE-191
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service, read adjacent process memory, or corrupt adjacent process memory.

The vulnerability exists due to unsigned integer underflow in the MongoDB C Driver BSON buffer-reservation API when append or comparison operations process a document with a recorded length below the five-byte BSON minimum. A remote attacker can influence the length an embedding application supplies to bson_reserve_buffer to trigger out-of-bounds reads or writes during subsequent affected operations, causing application termination or access to adjacent process memory.


Affected software

MongoDB driver for C
Fedora
mongo-c-driver

How to mitigate CVE-2026-106437

Install security update from vendor's website.

MongoDB driver for C - addressed in versions 1.30.13, 2.5.6
mongo-c-driver - addressed in versions 1.30.13-1.el8, 1.30.13-1.el9, 1.30.13-1.el10_2, 1.30.13-1.fc43, 1.30.13-1.fc44, 2.5.6-1.el10_3, 2.5.6-1.el10_4, 2.5.6-1.fc45

External References

Related Security Bulletins