Description
The Rapid7 Metasploit msf-ws suffers from a missing authentication vulnerability whereby the REST API grants an unauthenticated "bootstrap" exemption so that the very first administrator can be created when the users table is empty. While the table is empty, POST /api/v1/users is exempt from authentication by design: the route handler calls warden.authenticate!(scope: :admin_api), which resolves to AdminApiToken. The inherited ApiToken#authenticate! short-circuits and returns success!() whenever msf.auth_initialized is false, without ever evaluating AdminApiToken's administrator check. In that state the endpoint creates a user — including an administrator — for an entirely unauthenticated caller.


This issue has been fixed in version 6.5.9.
Published: 2026-11-05
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: Unauthenticated privilege escalation via creation of an administrator account
Action: Immediate Patch
AI Analysis

Impact

The Metasploit Framework web service API contains a missing authentication flaw that allows anyone to POST a new user when the users table is empty. During the initial bootstrap, the authentication function bypasses all checks because the framework is not yet initialized, permitting the creation of an administrator account by an unauthenticated caller. This flaw enables complete takeover of the instance without needing valid credentials, severely compromising confidentiality, integrity, and availability.

Affected Systems

The vulnerability applies to Rapid7 Metasploit Framework, specifically to versions released before 6.5.9. Only the initial deployment state when the database has no users is required – the flaw disappears once an administrator account exists.

Risk and Exploitability

With a CVSS score of 7.3, this issue represents high risk and can be abused without network-level authentication. The EPSS score is not available and the vulnerability is not listed in CISA KEV, but the exploitation path is straightforward: send a POST request to /api/v1/users while the users table is empty. An attacker can immediately gain full administrative control of the Metasploit service by exploiting this design flaw.

Generated by OpenCVE AI on November 5, 2026 at 16:36 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Rapid7 Metasploit Framework to version 6.5.9 or later, which removes the authentication bypass.
  • Ensure the database contains at least one user before exposing the msf-ws service to the network; create an administrator account during initial setup using a secure, isolated environment.
  • Limit external access to the REST API by implementing firewall rules or VPN restrictions so that only trusted hosts can reach the service during deployment.

Generated by OpenCVE AI on November 5, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 05 Nov 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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


Thu, 05 Nov 2026 15:45:00 +0000

Type Values Removed Values Added
Description The Rapid7 Metasploit msf-ws suffers from a missing authentication vulnerability whereby the REST API grants an unauthenticated "bootstrap" exemption so that the very first administrator can be created when the users table is empty. While the table is empty, POST /api/v1/users is exempt from authentication by design: the route handler calls warden.authenticate!(scope: :admin_api), which resolves to AdminApiToken. The inherited ApiToken#authenticate! short-circuits and returns success!() whenever msf.auth_initialized is false, without ever evaluating AdminApiToken's administrator check. In that state the endpoint creates a user — including an administrator — for an entirely unauthenticated caller. This issue has been fixed in version 6.5.9.
Title Rapid7 Metasploit Framework Web Service unauthenticated bootstrap window allows creation of an administrator account without authentication
Weaknesses CWE-306
References
Metrics cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: rapid7

Published:

Updated: 2026-11-05T17:11:41.112Z

Reserved: 2026-11-03T09:50:59.943Z

Link: CVE-2026-121139

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-05T16:17:44.787

Modified: 2026-11-05T17:18:00.293

Link: CVE-2026-121139

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-05T16:45:06Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function