CVE-2026-119673 PUBLISHED

mongofiles may write outside the working directory through a symlink

Assigner: mongodb
Reserved: 30.10.2026 Published: 03.11.2026 Updated: 03.11.2026

MongoDB Database Tools mongofiles does not resolve existing parent-directory symlinks when validating output paths for get_regex. 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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
CVSS Score: 1

Product Status

Vendor MongoDB
Product Database Tools
Versions Default: unaffected
  • affected from 100.2.0 to 100.20.1 (excl.)

References

Problem Types

  • CWE-59: Improper Link Resolution Before File Access (Link Following) CWE