CVE-2026-119673: mongofiles may write outside the working directory through a symlink

Published Nov 3, 2026
·
Updated

MongoDB Database Tools mongofiles does not resolve existing parent-directory symlinks when validating output paths for getregex. An unauthorized user who can both upload a GridFS file and place a symlink in the operator's download working directory can cause a later retrieval to create a file containing unauthorized user-controlled data outside that directory, using the operator process's filesystem permissions. The issue can occur with default traversal and overwrite settings. Exploitation requires an operator to retrieve matching files from the affected working directory; the demonstrated default behavior creates a new file rather than overwriting an existing file. This issue affects MongoDB Database Tools versions 100.2.0 through versions before 100.20.1.

Affected Software

2 affected components
ubuntu/mongo-tools*
ubuntu/mongo-tools*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade MongoDB Database Tools mongofiles to a version that resolves this vulnerability.

    Fixed in 100.20.1

Event History

Nov 3, 2026
CVE Published
via MITRE·04:14 PM
Data Sourced
via MITRE·04:14 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·05:18 PM
Affected Software
Data Sourced
via NVD·05:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Operators using affected MongoDB Database Tools versions who run mongofiles get_regex from a working directory where an unauthorized user can place symlinks are exposed. The unauthorized user must also be able to upload a GridFS file that the operator later retrieves.

2

Does exploitation require non-default mongofiles options?

No. The issue can occur with the default traversal and overwrite settings. In the demonstrated default behavior, retrieval creates a new file rather than overwriting an existing file.

3

What user interaction is required for exploitation?

An operator must retrieve matching GridFS files using get_regex from the affected working directory. The resulting file write occurs with the filesystem permissions of the operator process.

4

What versions are affected?

MongoDB Database Tools versions 100.2.0 through versions before 100.20.1 are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203