Technical impact
The vulnerability in MongoDB Database Tools mongorestore arises from inconsistent handling of the system.buckets. prefix when validating collection names for untrusted dumps. It allows a specially crafted collection name to bypass the tool's special‑collection checks and the operator namespace filters, enabling the restore command to create an arbitrary database user account. When the operator has user‑management privileges, the attacker can create a user with the root role, thus escalating privileges. The flaw is an instance of CWE-184 and CWE-706.
Affected Systems
Affected are the MongoDB Database Tools binary versions starting at 100.4.0 through versions before 100.20.1. Any deployment that uses mongorestore from these releases and restores a dump containing a maliciously named collection is at risk. The vulnerability is confined to the database tools and does not impact the MongoDB server itself.
Risk and Exploitability
The CVSS score of 5.2 places the flaw in the moderate range. An EPSS score of less than 1% indicates a low probability of exploitation, and it is not listed in CISA KEV, signifying no documented public exploitation. Nevertheless, the flaw can be leveraged by an operator running mongorestore with user‑management rights, a privilege many administrators have. The attack vector is local or remote via the restoration process, so an insider or a threat actor who can execute mongorestore can elevate privileges without additional compromise.