CVE-2026-119672
MediumCVSS 4.8Summary
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.
Risk Assessment
An attacker able to modify metadata can cause disclosure of GridFS content they normally cannot access if a higher-privileged operator retrieves the file without a destination. This may breach the confidentiality of data stored in GridFS.
Recommendation
Update MongoDB Database Tools to version 100.20.1 or later. Always specify an explicit --local destination when retrieving files and restrict metadata modification capabilities.
Other vulnerabilities in MongoDB Database Tools
See all- CVE-2026-119675High
MongoDB Database Tools mongorestore inconsistently handles the system.buckets. prefix when validating collection names in an untrusted dump. A specially crafted collection name can bypass special-collection guards and operator namespace filters, causing a restore to create an unauthorized user-chosen database account, including an account with the root role.
- CVE-2026-119674Low
MongoDB Database Tools mongorestore incorrectly URL-decodes an original collection name read from metadata when the corresponding dump filename has been truncated. A database user who can create and populate a suitably encoded collection can cause a later authorized directory restore to write documents into a different collection the user cannot modify directly; use of --drop can also replace the unintended destination collection.
- CVE-2026-119673Low
MongoDB Database Tools mongofiles does not resolve existing parent-directory symlinks when validating output paths for get_regex. An unauthorized user who can upload a GridFS file and place a symlink in the operator's download working directory can cause a later retrieval to create a file with user-controlled data outside that directory, using the operator process's filesystem permissions.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

