Incorrect calculation in MongoDB driver for C - CVE-2026-106438

 

Incorrect calculation in MongoDB driver for C - CVE-2026-106438

Published: October 25, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to cause an application to store or use an incorrect numeric value.

The vulnerability exists due to an incorrect exactness calculation in the MongoDB C Driver Decimal128 string parser when processing over-precision decimal strings containing leading zeros. A remote attacker can supply a crafted decimal string to an embedding application, including through Extended JSON parsing, to cause the parser to accept a value different from the supplied text instead of rejecting the input.


Affected software

MongoDB driver for C
Fedora
mongo-c-driver

How to mitigate CVE-2026-106438

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