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.
Exploitability
AV:NAC:HPR:LUI:RScope
S:UImpact
C:NI:LA:L3.7/CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L