---
id: CVE-2026-119672
title: >-
  mongofiles may disclose GridFS content to standard output through a stored
  filename
summary: >-
  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 auth…
severity: medium
cvss: 4.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-73
vendor: MongoDB
product: Database Tools
affected:
  - database_tools >= 3.1.4 < 100.20.1
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-03T17:44:41.434159Z'
published: '2026-11-03'
updated: '2026-11-03'
sourceUpdated: '2026-11-03T17:44:54.274Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-119672'
references:
  - url: 'https://github.com/mongodb/mongo-tools/blob/master/CHANGELOG.md'
tags:
  - cve.org
epss: 0.00226
epssPercentile: 0.13447
ingestedAt: '2026-11-05T20:33:06.328Z'
---

## Overview

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.

## Affected

- `database_tools >= 3.1.4 < 100.20.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
