CVE-2026-84970 PUBLISHED

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

Assigner: mongodb
Reserved: 02.09.2026 Published: 03.09.2026 Updated: 03.09.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
CVSS Score: 5.9

Product Status

Vendor MongoDB
Product C++ Driver
Versions Default: unaffected
  • affected from 3.2.0 to 4.5.2 (excl.)

References

Problem Types

  • CWE-681: Incorrect Conversion between Numeric Types CWE