Heap overflow via truncated base64 encoding of binary fields in length-limited JSON output
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA C Driver (MongoDB) Fixed in 1.30.9, 2.5.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
MongoDB C Driver 1.30.9, 2.5.2
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-58387 Heap corruption via OCSP request double free from crafted multi-URL certificate in TLS clientPriority LOW 35
- TI-2026-58386 Silent field truncation via unchecked int cast of huge JSON string values in JSON-to-BSON parserPriority LOW 34
- TI-2026-58388 Heap write primitive via size round-up wrap during JSON parsing on 32-bit buildsPriority LOW 25
Timeline
- 2026-10-02 Threatist record created from CVE-2026-84969
- 2026-10-03 Alias added: GHSA-9xr7-hhfx-wh4c
References
More MongoDB C Driver vulnerabilities
- TI-2026-62966 Heap overflow via oversized decrypted TLS record sequence in Windows Secure Channel stream CVSS 4.0CRITICAL 9.2
- TI-2026-05870 MongoDB C Driver Cyrus SASL Canonicalization Buffer Overflow CVSS 4.0HIGH 8.6
- TI-2026-62968 Integer Underflow → Heap Out-of-Bounds Read in `bson_new_from_buffer() CVSS 4.0MEDIUM 6.9
- TI-2024-07001 Accessing Untrusted Directory May Allow Local Privilege Escalation CVSS 3.1HIGH 7.8
- TI-2026-58387 Heap corruption via OCSP request double free from crafted multi-URL certificate in TLS client CVSS 4.0HIGH 8.2
- TI-2023-00414 MongoDB client C Driver may infinitely loop when validating certain BSON input data CVSS 3.1HIGH 7.5
Sources
- CVE-2026-84969 · CVE Program
- CVE-2026-84969 · NVD
- FIRST EPSS
- GHSA-9xr7-hhfx-wh4c · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences