CVE-2026-119672

mongofiles may disclose GridFS content to standard output through a stored filename

Published Nov 3, 2026 CVSS 4.0 · 5.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 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 database Tools
Vendors & Products Mongodb
Mongodb database Tools
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'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Nov 3, 2026, 5:44 PM
Reserved
Oct 30, 2026, 2:07 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 5:18 PM
Modified
Nov 3, 2026, 8:00 PM
Severity
Moderate
Public date
Nov 3, 2026, 4:09 PM