Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-84970 EUVD-2026-70505GHSA-j94p-2ppx-483m

Heap over-read or silent misparse via 32-bit truncation of JSON length in BSON JSON parser

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

Description

A numeric truncation weakness exists in the JSON parsing component of the MongoDB C++ Driver's BSON library. An actor who controls the text that an embedding application hands to the library's public JSON parsing interface, when that text is very large, can cause the library to read memory beyond the supplied buffer and return it to the caller, to silently accept only part of the input as a complete document, or to terminate the process. No MongoDB server, credentials, or non-default configuration is required; the effect is confined to the process that uses the library.

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