Read the docs

MongoDB mongofiles symlink flaw writes files outside working directory

Priority LOW 6CWE-59Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Partial Red Hat: 1 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

MongoDB Database Tools from 100.2.0 before 100.20.1 is affected. The mongofiles tool does not resolve existing parent-directory symlinks when validating output paths for get_regex, which is a case of CWE-59. 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's filesystem permissions. Exploitation requires an operator to retrieve matching files from the affected working directory.

Written with Claude Haiku 5.5 from the sources below · 2026-11-07

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00147 3rd percentileScored 2026-11-07
Fix Partial Database Tools (MongoDB): 100.20.1Red Hat: 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBDatabase Tools100.2.0 to before 100.20.1100.20.1Patch availableCNA
  • Database Tools VendorMongoDB Affected 100.2.0 to before 100.20.1 Fixed in 100.20.1 Patch available CNA

Remediation

Upgrade MongoDB Database Tools to 100.20.1, which fixes the flaw. Red Hat rates this Low and lists Red Hat Ceph Storage 9 as affected with no fix plan available.

Written with Claude Haiku 5.5 from the sources below · 2026-11-07

  • Fix · CNA Database Tools (MongoDB) Fixed in 100.20.1

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Database Tools 100.20.1

    4 records Highest priority Priority LOW 4 LOW

    Other records, highest priority first

    • TI-2026-84396 mongofiles may disclose GridFS content via stored filenamePriority LOW 26
    • TI-2026-84398 Collection guard bypass in MongoDB Database Tools mongorestorePriority LOW 25
    • TI-2026-84405 mongorestore may restore encoded collection names into an unintended collectionPriority LOW 10

Vendor assessments

Red Hat

Red Hat rating: Low. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Ceph Storage 9AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-11-03 Threatist record created from CVE-2026-119673
  2. 2026-11-03 CISA SSVC decision points changed
  3. 2026-11-03 Alias added: GHSA-3jx2-r7fh-fm2g
  4. 2026-11-07 Affected versions changed · Red Hat
  5. 2026-11-07 CVSS score added · Red Hat

References

  • TI-2019-08023 Code injection in mongo-express KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib compressed protocol header length confusion may allow memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79422 Unbounded memory growth in MongoDB C# Driver BSON deserialization CVSS 4.0HIGH 8.2
  • TI-2026-79427 Authentication bypass via issuer-and-serial-only certificate equality CVSS 4.0HIGH 7.6
See all 376 →

Sources