CVE-2026-84969: CWE-787: Out-of-bounds Write in MongoDB C Driver
Description
CVE-2026-84969 is a medium severity vulnerability in the MongoDB C Driver affecting versions >=1.30.0 <1.30.9 and >=2.0.0 <2.5.2. It involves an out-of-bounds write during BSON-to-JSON conversion when encoding a binary field with a caller-configured length limit. An unprivileged attacker supplying document content may cause a small amount of data outside the intended buffer to be altered.
CVSS v4.0
Score 6.3medium
Affected software
MongoDB
C Driver
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-787) arises from a memory-handling error in the BSON-to-JSON conversion helpers of the MongoDB C Driver. Specifically, when a binary field is encoded and the output is truncated at a length limit set by the caller, a small number of bytes can be written past the end of the allocated heap buffer. This out-of-bounds write can be triggered by an attacker who supplies the document content, even without privileges on the application using the driver. The flaw affects MongoDB C Driver versions >=1.30.0 <1.30.9 and >=2.0.0 <2.5.2.
Potential Impact
An attacker who can supply document content to an application using the vulnerable MongoDB C Driver versions may cause a small amount of memory outside the intended buffer to be overwritten. This could potentially lead to data corruption or undefined behavior in the application. No privilege is required on the application, but the attacker must be able to supply BSON documents to the driver. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, applications should consider restricting untrusted input that reaches the BSON-to-JSON conversion routines or apply other protective measures as advised by MongoDB once the advisory is published.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- mongodb
- Date Reserved
- 2026-09-02T17:58:52.742Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a998d5bacd9273b4916fcaa
Added to database: 09/03/2026, 15:08:11 UTC
Last enriched: 10/17/2026, 23:27:23 UTC
Last updated: 10/17/2026, 23:27:23 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.