Intel

AIKIDO-2026-254396

mongodb.mongo-c-driver is vulnerable to Numeric Truncation Error

Numeric Truncation ErrorCVE-2026-84963 Published 3 days ago

63

Medium Risk

This Affects:

C++mongodb.mongo-c-driver
1.10.0 - 1.30.8
Fixed in 1.30.9
2.0.0 - 2.5.1
Fixed in 2.5.2
Are you affected? Scan for Free

TL;DR

libbson parses JSON into BSON and reads value lengths as size_t while later handling them as int. When an input value is unusually large, bson-json.c narrows the length without an in-range check, so fields can be silently truncated or omitted while parsing still reports success. Externally supplied JSON then yields a BSON document that differs from what was submitted. The fix validates that lengths fit int with mcommon_in_range_unsigned before use and rejects oversized values.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse externally influenced JSON into BSON.

Background info

mongodb.mongo-c-driver is vulnerable to Numeric Truncation Error in versions 1.10.0 - 1.30.8 and 2.0.0 - 2.5.1.

How to fix this

Upgrade the mongodb.mongo-c-driver library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform