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

State
Published
Severity
5.9 Medium
Published
Nov 3, 2026
Updated
Nov 3, 2026
Reserved
Oct 30, 2026

Read the record on cve.org

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.

ProductVersions
Database Tools MongoDB3.1.4 to before 100.20.1 Affected

Weaknesses

  • CWE-73 External Control of File Name or Path

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.