Vulnerability · Published Sep 3, 2026 · Assigned by mongodb

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

Medium 6.2

In plain English

A medium-severity security flaw in C++ Driver from MongoDB. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.2Medium
Exploit odds (30 days)0.1%top 97.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14mongo-cxx-driver4.5.2-1DEBIAN-CVE-2026-84970
Ubuntu:26.10mongo-cxx-driverno fix listedUBUNTU-CVE-2026-84970

Affected products (as reported)

VendorProductVersions
MongoDB C++ Driver 3.2.0 – before 4.5.2

Weakness: CWE-681 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H

References