Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach msf-ws REST API during empty-users window
-
DeliverySend unauthenticated POST /api/v1/users
-
ExploitBootstrap exemption bypasses admin check
-
ExecutionCreate administrator account
-
ImpactFull control of Metasploit web service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the msf-ws users table to be empty AND the web service running in its bootstrap state where request.env['msf.auth_initialized'] is false - concretely, a fresh install before msfdb has created the first administrator, or a restored/blank database brought up under the service. Only the POST /api/v1/users route carries the exemption, and only while no users exist. The limiting factor is this narrow, non-steady-state window: in normal operation msfdb creates the first admin out of band, so once any user exists the flag latches and authentication is enforced, closing the opportunity. An attacker must therefore reach the API precisely during that uninitialized interval. |
| Impact | This is a CWE-306 missing-authentication flaw in Rapid7 Metasploit's msf-ws REST API: while the users table is empty, the inherited ApiToken#authenticate! short-circuits to success!() because msf.auth_initialized is false, so POST /api/v1/users creates an account - including an administrator - for an entirely unauthenticated caller. The signals conflict and must be read carefully. The vendor-supplied CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:L) implies LOCAL access with low privileges already held, yet the description describes a REST API endpoint and an exemption granted to an 'entirely unauthenticated caller' - the AV:L/PR:L choice is inconsistent with a network-reachable, by-design unauthenticated endpoint and should be verified with Rapid7. The one genuine limiter is captured by AT:P: exploitation only works during the transient bootstrap window when zero users exist (a fresh install before msfdb creates the first admin, or a restored blank database). No EPSS score, no CISA KEV listing, and no public exploit were provided; the only reference is the vendor's own fix pull request (#22039), not exploit code. The vuln.today priority is 'this_week', so this warrants prioritized remediation within the week rather than emergency handling, but it is not a high-CVSS/low-real-risk false alarm - in the vulnerable window it yields full administrative takeover of the web service. The practical risk is bounded by how often an msf-ws instance is exposed with an empty users table. |
| Exploit ScenarioDerived | An attacker who can reach the msf-ws REST API during the window before any user account exists (a freshly started service or a restored blank database) sends an unauthenticated POST /api/v1/users request and creates an administrator account, gaining full control of the Metasploit web service. Because the empty-table exemption bypasses the AdminApiToken check entirely, no credentials are needed while that state persists. No public exploit code was identified at time of analysis; the only reference is the vendor fix PR. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 05, 2026
Missing authentication in the Rapid7 Metasploit Framework msf-ws REST API lets an unauthenticated caller create a user - including an administrator - by sending POST /api/v1/users while the users table is still empty, handing full control of the Metasploit web service to an outside party. All Metasploit Framework releases before 6.5.9 are affected; assessed severity is CVSS:3.1 8.1 (AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:H), with the high attack-complexity reflecting the narrow bootstrap window before msfdb creates the first account, after which the initialized flag latches and authentication is enforced. No public exploit identified at time of analysis, no KEV listing, and the vendor fix is Metasploit Framework 6.5.9.
RemediationAI
Upgrade to Metasploit Framework 6.5.9, which removes the unauthenticated bootstrap flow so that POST /api/v1/users always requires an administrator API token (see https://github.com/rapid7/metasploit-framework/pull/22039). Because the exposure exists only while the users table is empty, the practical compensating control for systems that cannot be upgraded immediately is to never leave the service in that state: provision the first administrator and its API token directly in the database, or run msfdb --component webservice reinit, which creates the account but additionally stops and restarts the web service (plan for that interruption). For an existing web service with a blank or restored users table, create the user and token in the database out of band, as described in the How to use Metasploit JSON RPC documentation, before allowing any client to reach the API. As a further guard, keep msf-ws bound to trusted interfaces or behind a proxy that restricts access to /api/v1/users, understanding that this is network-level filtering and not a fix for the missing authentication check.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
msf-ws is the Sinatra-based JSON-RPC/REST front end of the Metasploit Framework, and it authenticates requests through Warden strategies. The AdminApiToken strategy inherits from ApiToken, whose authenticate! method returned success!() without any credential check whenever request.env['msf.auth_initialized'] was false; in that state AdminApiToken's own administrator check was never reached, so the POST /api/v1/users route created arbitrary accounts for anonymous callers. The flag was set in MetasploitApiApp from a process-lifetime class variable (@@auth_initialized ||= user count > 0) combined with an initial_account_creation? test that limited the exemption to that one route, while json_rpc_app.rb set the flag to true. The design intent was a bootstrap path so a first administrator could exist before any credentials did; the defect is CWE-306 (Missing Authentication for Critical Function), where the fail-open branch is triggered by application state rather than by any request attribute. The upstream fix in PR 22039 removes the exemption entirely: ApiToken#authenticate! no longer consults auth_initialized?, the environment flags and auth_initialized? helper are deleted, and the documentation now states that the first administrator account and its API token are created directly in the database by msfdb before the web service starts, so POST /api/v1/users always requires an administrator API token. Exploitation conditions: the users table must be empty and the service must be in its bootstrap state - a fresh install before msfdb has provisioned the first admin, or a restored/blank database brought up under the service. The limiting factor is that narrow, non-steady-state window; the trigger is an unauthenticated HTTP request to the single user-creation endpoint.
Know when Metasploit Framework gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
REST API is network-reachable and the flaw grants unauthenticated access by design (PR:N), but the empty-users bootstrap window is a required precondition (AC:H); creating an admin fully compromises the web service (C/I/A:H).
Primary rating from Vendor (rapid7).
CVSS VectorVendor: rapid7
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
A missing authentication flaw in Rapid7 Metasploit Framework (versions before 6.5.9) could allow an unauthenticated outsider to create an administrator account during initial setup, granting full control of the web service. While the attack window is narrow and no public exploit exists, this could lead to unauthorized access and compromise of security testing infrastructure if not patched.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Metasploit Framework
View allUnauthenticated read, modification, and permanent deletion of stored credential records in Rapid7 Metasploit Framework t
Code injection in Rapid7 Metasploit Framework before 6.5.10 allows a malicious or compromised hardware bridge to execute
Quadratic CPU consumption in the Rex HTTP request normalizer of Rapid7 Metasploit Framework allows remote unauthenticate
Unauthenticated local access to Metasploit Framework's JSON-RPC dispatcher is possible via a fail-open logic flaw (CWE-3
EUVD-2026-117544
GHSA-9hfj-jg3v-c22g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB