CVE-2026-119674

mongorestore may restore encoded collection names into an unintended collection

Published Nov 3, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

mongorestore incorrectly URL‑decodes a collection name read from metadata when the corresponding dump filename has been truncated. This flaw causes an administrator who restores a dump to write documents into an unintended collection, potentially dropping or overwriting backed‑up documents when a drop option is used. The primary impact is loss or corruption of data integrity and availability, rather than remote code execution or privilege escalation.

Affected Systems

MongoDB Database Tools versions 100.0.2 through before 100.20.1 are vulnerable. The issue resides in the mongorestore utility and affects any environment that performs directory restores using those tool versions.

Risk and Exploitability

The CVSS score of 2.1 indicates a low severity. EPSS score is <1%, and the vulnerability is not listed in CISA KEV. Exploitation requires that the attacker can create and populate a collection with an encoded name and that an operator subsequently performs a directory restore with write access to the destination. Therefore the attack vector is inferred to be an authorized restoration process; the scope is limited to the database user who can initiate the restore, making exploitation unlikely in uncontrolled environments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade MongoDB Database Tools to version 100.20.1 or later
  • Validate that dump filenames exactly match intended collection names prior to restore
  • Restrict restore role permissions to write only to the desired collections

Generated by OpenCVE AI on November 6, 2026 at 03:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb
Mongodb database Tools
Vendors & Products Mongodb
Mongodb database Tools
Type Values Removed Values Added
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.
Title mongorestore may restore encoded collection names into an unintended collection
Weaknesses CWE-174
References
Metrics cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:L'}

cvssV4_0

{'score': 2.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-115

    Misinterpretation of Input

  • CWE-174

    Double Decoding of the Same Data

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Nov 3, 2026, 5:38 PM
Reserved
Oct 30, 2026, 2:08 PM
Status
Awaiting Analysis
Published
Nov 3, 2026, 5:18 PM
Modified
Nov 3, 2026, 8:00 PM
Severity
Low
Public date
Nov 3, 2026, 4:21 PM