Description
MongoDB Database Tools mongofiles uses a database-stored GridFS filename as the output destination for get_id when --local is not specified. A user who can modify the file metadata can set the stored filename to '-', causing a later authorized retrieval to write the file contents to standard output instead of a local file. If standard output is captured in a location accessible to that user, this may disclose GridFS content the user cannot read directly. Exploitation requires a higher-privileged operator to retrieve the affected file without an explicit local destination and attacker access to the captured output. This issue affects MongoDB Database Tools from version 3.1.4 through versions before 100.20.1.
Published: 2026-11-03
Score: 5.9 Medium
EPSS: n/a
KEV: No
Impact: Data Disclosure
Action: Assess Impact
AI Analysis

Impact

MongoDB Database Tools mongofiles can use a database‑stored GridFS filename as the output location for the get_id operation when the --local flag is omitted. A privileged user who can modify the file’s metadata can set the stored filename to the string ‘-’, which causes mongofiles to write the file contents to standard output instead of to a local file. If the attacker can capture that standard output in a location they can later read, the contents of the GridFS file may be disclosed even though the attacker does not have direct read permission on the file. This flaw directly allows the exposure of data to an attacker via an unintended output channel.

Affected Systems

MongoDB Database Tools, edition Database Tools, version range 3.1.4 through any release before 100.20.1. The vulnerability is present in all releases within this range regardless of configuration, provided the --local option is omitted during file retrieval.

Risk and Exploitability

The CVSS score of 5.9 reflects a moderate confidence that the flaw can lead to data disclosure. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting it has not been widely targeted so far. Exploitation requires a higher‑privileged operator to invoke mongofiles and retrieve the affected file without specifying a local destination, and the attacker must have prior access to the location where the captured standard output is stored. In practice, the threat is limited to scenarios where an attacker controls output capture or has read access to the capture destination, but if that condition is met, the vulnerability can expose sensitive GridFS data.

Generated by OpenCVE AI on November 3, 2026 at 17:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update MongoDB Database Tools to 100.20.1 or later, which removes the ability to set the stored filename to ‘-’.
  • Restrict the ability to modify file metadata so that only trusted administrators can change names; audit and enforce least‑privilege for metadata updates.
  • Avoid running mongofiles without the --local option or capture standard output to a secure, non‑accessible location; monitor for use of ‘-’ as a filename parameter.

Generated by OpenCVE AI on November 3, 2026 at 17:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 03 Nov 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 03 Nov 2026 18:15:00 +0000

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb database Tools
Vendors & Products Mongodb
Mongodb database Tools

Tue, 03 Nov 2026 16:30:00 +0000

Type Values Removed Values Added
Description MongoDB Database Tools mongofiles uses a database-stored GridFS filename as the output destination for get_id when --local is not specified. A user who can modify the file metadata can set the stored filename to '-', causing a later authorized retrieval to write the file contents to standard output instead of a local file. If standard output is captured in a location accessible to that user, this may disclose GridFS content the user cannot read directly. Exploitation requires a higher-privileged operator to retrieve the affected file without an explicit local destination and attacker access to the captured output. This issue affects MongoDB Database Tools from version 3.1.4 through versions before 100.20.1.
Title mongofiles may disclose GridFS content to standard output through a stored filename
Weaknesses CWE-73
References
Metrics cvssV3_1

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

cvssV4_0

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


Subscriptions

Mongodb Database Tools
cve-icon MITRE

Status: PUBLISHED

Assigner: mongodb

Published:

Updated: 2026-11-03T17:44:54.274Z

Reserved: 2026-10-30T14:07:54.715Z

Link: CVE-2026-119672

cve-icon Vulnrichment

Updated: 2026-11-03T17:44:46.559Z

cve-icon NVD

Status : Received

Published: 2026-11-03T17:18:06.640

Modified: 2026-11-03T18:17:55.827

Link: CVE-2026-119672

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-03T18:00:19Z

Weaknesses
  • CWE-73

    External Control of File Name or Path