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.
Published: 2026-09-03
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an out-of-bounds write occurring in the BSON-to-JSON conversion helpers of the MongoDB C Driver when a binary field is base64 encoded and the output is truncated by a caller-specified length limit. This flaw can allow an attacker to overwrite a few bytes beyond the allocated heap buffer, potentially altering adjacent data structures in memory. The impact is memory corruption, which could lead to program crashes or unpredictable behaviour but does not directly provide remote code execution. The weakness is identified as CWE-787.

Affected Systems

The affected product is the MongoDB C Driver. No specific versions are listed, so any version of the driver that contains the vulnerable conversion helper may be impacted. Applications that link against the driver library and process BSON documents may be exposed if they use the truncating JSON output helper.

Risk and Exploitability

The CVSS score is 6.3, reflecting medium severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack requires an actor who can supply arbitrary BSON documents to the application that uses the driver; no special privileges on the application are required for the attacker, but the attacker must influence the data fed into the driver. Because the flaw results in an out-of-bounds write rather than a privilege escalation or arbitrary code execution, the risk is primarily of memory corruption and potential denial-of-service rather than direct compromise. The likely attack vector is through the application that processes external data, leveraging the driver’s conversion helper.

Generated by OpenCVE AI on September 3, 2026 at 16:42 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the MongoDB C Driver to a version that includes the fix for the out-of-bounds write identified in JIRA CDRIVER-6410.
  • Configure the driver or the application to avoid truncating binary fields during BSON-to-JSON conversion, or remove usage of the vulnerable helper if possible.
  • Validate and sanitize all incoming documents before they reach the driver, ensuring that binary fields are not malicious or excessively large, and enforce strict length limits that do not rely on the truncated helper.

Generated by OpenCVE AI on September 3, 2026 at 16:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 03 Sep 2026 17:00:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c Driver
Vendors & Products Mongodb
Mongodb c Driver

Thu, 03 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 15:00:00 +0000

Type Values Removed Values Added
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.
Title Heap overflow via truncated base64 encoding of binary fields in length-limited JSON output
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Mongodb C Driver
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-09-03T15:08:11.873Z

Reserved: 2026-09-02T17:58:52.742Z

Link: CVE-2026-84969

cve-icon Vulnrichment

Updated: 2026-09-03T15:08:05.082Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-03T15:17:36.250

Modified: 2026-09-03T17:52:05.570

Link: CVE-2026-84969

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T16:45:06Z

Weaknesses