All reports
Low

github.com/mongodb/mongo-tools: MongoDB Database Tools: Unauthorized collection overwrite via improper URL decoding

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-119674

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-18

Description

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 those documents into a different collection that the user cannot modify directly. When both collection names resolve to the same destination, backed-up documents may be omitted; use of --drop can also replace the unintended destination collection. Exploitation requires an operator to restore the affected collection from a directory dump with write access to the destination. This issue affects MongoDB Database Tools versions 100.0.2 through versions before 100.20.1.

A flaw was found in MongoDB Database Tools' mongorestore utility. When restoring data from a directory dump where filenames have been truncated, mongorestore incorrectly URL-decodes the collection name stored in metadata. An authenticated database user can exploit this by creating a specifically encoded collection name, causing a subsequent authorized restore operation to write documents into or overwrite an unintended collection that the user cannot modify directly. This issue can result in unauthorized data modification and data loss.