Skip to content
OpenAdvisories
Medium · 5.1 CVE-2026-84966 EUVD-2026-70511

BSON element injection via NUL-embedded document keys in builder append

Published Sep 3, 2026 · Updated Sep 3, 2026 · Assigned by mongodb

Description

An incorrect numeric type conversion in the BSON document building component of the MongoDB C++ Driver may cause a length value to be interpreted incorrectly. When an application supplies an extremely large, non-terminated field name to the builder, the library may read memory outside the intended buffer and terminate the calling process. No authentication is required, but the calling application must pass the oversized name in a specific form.

Affected products

VendorProductAffectedFixed
MongoDB C++ Driver 3.2.0 – < 4.5.2 4.5.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 mongo-cxx-driver 4.5.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 mongo-cxx-driver No fix yet —

Advisories 1

References