mongorestore may restore encoded collection names into an unintended collection
- State
- Published
- Severity
- 2.1 Low
- Published
- Nov 3, 2026
- Updated
- Nov 3, 2026
- Reserved
- Oct 30, 2026
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.
| Product | Versions |
|---|---|
| Database Tools MongoDB | 100.0.2 to before 100.20.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 2.1 Low | mongodb | |
| 3.1 | 3.7 Low | mongodb |
Weaknesses
- CWE-174 Double Decoding of the Same Data
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.