Skip to main content

Metasploit Framework CVE-2026-121139

| EUVDEUVD-2026-117544 HIGH
Missing Authentication for Critical Function (CWE-306)
2026-11-05 rapid7 GHSA-9hfj-jg3v-c22g
7.3
CVSS 4.0 · Vendor: rapid7
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach msf-ws REST API during empty-users window
  2. Delivery
    Send unauthenticated POST /api/v1/users
  3. Exploit
    Bootstrap exemption bypasses admin check
  4. Execution
    Create administrator account
  5. Impact
    Full 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Metasploit Framework 0 <6.5.9

Affected Packages

euvd metasploit_framework fix: 6.5.9

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

Vendor (rapid7) PRIMARY 7.3 HIGH
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
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (rapid7).

CVSS VectorVendor: rapid7

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 05, 2026 - 16:02 EUVD
CVE Published
Nov 05, 2026 - 15:24 cve.org
HIGH 7.3

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular pentest framework, but msf-ws REST component less commonly deployed
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB Metasploit

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy