CVE-2026-84969

Heap overflow via truncated base64 encoding of binary fields in length-limited JSON output

State
Published
Severity
6.3 Medium
Published
Sep 3, 2026
Updated
Sep 3, 2026
Reserved
Sep 2, 2026

Read the record on cve.org

Description

A memory-handling error in the BSON-to-JSON conversion helpers of the MongoDB C Driver can write a small number of bytes past the end of a heap buffer when a binary field is encoded and the output is cut short at a caller-configured length limit. A party who supplies the document content, with no privileges on the application that links the driver, may cause a small amount of data outside the intended buffer to be altered.

Scores

CVSSScoreVectorSource
4.06.3 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:Nmongodb
3.13.7 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:Nmongodb

Weaknesses

Affected Products

ProductVersions
C DriverMongoDB
  • 1.30.0 to before 1.30.9Affected
  • 2.0.0 to before 2.5.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.