Description
A logic vulnerability (fail-open condition) has been identified within the Metasploit Framework's JSON-RPC web service interface. When an exception occurs during the database health check (db.check) and the environment variable MSF_WS_JSON_RPC_API_TOKEN is not explicitly set, the application resets the internal state flag msf.auth_initialized to false. The ApiToken Warden authentication strategy misinterprets this false value as an indicator that authentication is not initialized or required, thereby granting unauthenticated local access to the JSON-RPC request dispatcher.
Published: 2026-08-27
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A logic flaw in Metasploit Framework’s JSON‑RPC interface causes the authentication flag to be reset to false when a database health check fails and the environment variable MSF_WS_JSON_RPC_API_TOKEN is unset. The authentication strategy then interprets this false state as an indication that authentication is not required, which effectively bypasses access controls and grants local users the ability to issue arbitrary JSON‑RPC commands. This omission could allow a local attacker to execute privileged API calls, modify configurations, or compromise system integrity.

Affected Systems

The vulnerability affects the Rapid7 Metasploit Framework; specific version information is not disclosed in the advisory, so any instance that permits local JSON‑RPC access and has not applied the patch may be impacted.

Risk and Exploitability

The CVSS score of 5.1 reflects moderate severity, and no EPSS score is provided. The issue is not listed in CISA’s KEV catalog. Exploitability is largely limited to local platforms where the JSON‑RPC service is available, no remote exploitation vector is described. The required preconditions include a database health check failure and the absence of the MSF_WS_JSON_RPC_API_TOKEN variable, conditions that could be intentionally triggered by a local attacker or occur naturally under certain failure conditions. The vulnerability is a fail‑open logic flaw (CWE‑305), which offers attackers a predictable bypass of authentication steps.

Generated by OpenCVE AI on August 27, 2026 at 05:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Metasploit Framework to the latest release that patches the JSON‑RPC authentication bypass.
  • If an upgrade cannot be applied immediately, set the MSF_WS_JSON_RPC_API_TOKEN environment variable to a non‑empty value to enforce token‑based authentication in the Warden strategy.
  • Limit or disable the JSON‑RPC service from external access and restrict local user privileges to reduce the impact of an unauthenticated request dispatcher.

Generated by OpenCVE AI on August 27, 2026 at 05:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 27 Aug 2026 04:00:00 +0000

Type Values Removed Values Added
Description A logic vulnerability (fail-open condition) has been identified within the Metasploit Framework's JSON-RPC web service interface. When an exception occurs during the database health check (db.check) and the environment variable MSF_WS_JSON_RPC_API_TOKEN is not explicitly set, the application resets the internal state flag msf.auth_initialized to false. The ApiToken Warden authentication strategy misinterprets this false value as an indicator that authentication is not initialized or required, thereby granting unauthenticated local access to the JSON-RPC request dispatcher.
Title Authentication Bypass in Metasploit JSON-RPC Service When DB Health Check Fails
Weaknesses CWE-305
References
Metrics cvssV4_0

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: rapid7

Published:

Updated: 2026-08-27T03:14:21.055Z

Reserved: 2026-07-24T05:29:02.405Z

Link: CVE-2026-16895

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T04:16:41.530

Modified: 2026-08-27T04:16:41.530

Link: CVE-2026-16895

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-27T05:30:07Z

Weaknesses
  • CWE-305

    Authentication Bypass by Primary Weakness