CVE-2026-120684

MongoDB C Driver GridFS gap lets a shared writer recover a protected client's password

Published Nov 3, 2026 CVSS 4.0 · 6 Medium EPSS < 1% KEV · Not listed
Description
A memory-initialization flaw in the legacy GridFS file handling of the MongoDB C Driver can cause uninitialized process memory to be treated as valid file content and stored on the server. A database user holding ordinary write access to a shared storage area can arrange conditions under which an application later appends to such a file and writes that memory into records the same user is permitted to read, which may result in unintended disclosure of sensitive information from the application's process, including credentials.

Analysis

AI-generated

Technical impact

A memory‑initialization flaw in the legacy GridFS file handling of the MongoDB C Driver can treat uninitialized process memory as valid file content and persist it on the server. If a database user with ordinary write access to a shared storage area arranges that an application subsequently appends to such a file, the driver may write that leaked memory into records the user can then read, exposing sensitive information such as credentials or other secrets.

Affected Systems

MongoDB C Driver version 2.5.5 is affected. The vulnerability is specific to the legacy GridFS implementation in that release.

Risk and Exploitability

The CVSS score of 6.0 indicates a medium severity confidentiality risk. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting no widely known public exploits yet. Exploitation requires a legitimate write operation to a shared GridFS area; the attacker would need to be a database user with normal write rights. Once the uninitialized data is persisted, any subsequent read by the same user or other authorized users could disclose sensitive data from the application’s process space. No denial‑of‑service or code execution is possible according to the description.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the MongoDB C Driver to version 2.5.6 or later, which removes the uninitialized memory handling bug.
  • During the update, verify that the application no longer writes uninitialized data to GridFS files.
  • Restrict write permissions on shared GridFS areas to only users who must create or modify files, and consider separating read‑only and write‑only collections.
  • Audit application logs for unexpected file writes that could indicate exploitation attempts.

Generated by OpenCVE AI on November 3, 2026 at 20:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c Driver
Vendors & Products Mongodb
Mongodb c Driver
Type Values Removed Values Added
Title MongoDB C Driver 2.5.5 GridFS gap lets arotected client's password MongoDB C Driver GridFS gap lets a shared writer recover a protected client's password
Type Values Removed Values Added
Description A memory-initialization flaw in the legacy GridFS file handling of the MongoDB C Driver can cause uninitialized process memory to be treated as valid file content and stored on the server. A database user holding ordinary write access to a shared storage area can arrange conditions under which an application later appends to such a file and writes that memory into records the same user is permitted to read, which may result in unintended disclosure of sensitive information from the application's process, including credentials.
Title MongoDB C Driver 2.5.5 GridFS gap lets arotected client's password
Weaknesses CWE-908
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-908

    Use of Uninitialized Resource

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Nov 3, 2026, 8:11 PM
Reserved
Nov 2, 2026, 7:16 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 7:18 PM
Modified
Nov 3, 2026, 9:17 PM