Skip to main content
← All vulnerabilities
CVE-2026-16895

Authentication Bypass in Metasploit JSON-RPC Service When DB Health Check Fails

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.5.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • JSON-RPC

    fixed in 6.5.2

References 2

rapid7.com

GitHub · rapid7/metasploit-framework