{"id":"CVE-2026-16895","aliases":["CVE-2026-16895"],"related":[],"kind":"vulnerability","state":"published","title":"Authentication Bypass in Metasploit JSON-RPC Service When DB Health Check Fails","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-27T03:14:21.055Z","modified":"2026-08-28T21:17:10.720Z","severity":{"scorer":"rapid7","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"rapid7","scheme":"CVSS:4.0","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","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-305"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"6.5.2","status":"affected"}],"vendor":"Rapid7","product":"Metasploit-framework","package":"JSON-RPC","repo":"https://github.com/rapid7/metasploit-framework/blob/cd8cd0a52b519072bde513304c2a351a6f499b30/lib/msf/core/web_services/json_rpc_app.rb","source":"cvelist"}],"references":[{"url":"https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-lot-of-summer-shells-and-fit-http-profiles/","tags":["vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rapid7/metasploit-framework/pull/21768","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Jaime Cavero"],"assigner":"rapid7","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-27T13:09:31.706Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-16895","url":"https://www.cve.org/CVERecord?id=CVE-2026-16895","licence":"CVE Terms of Use","modified":"2026-08-27T13:09:40.173Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-16895","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-16895","licence":"Public domain","modified":"2026-08-28T21:17:10.720Z"}],"updatedAt":"2026-11-25T22:59:35.453Z","epss":{"score":0.00161,"percentile":0.05523,"date":"2026-12-01T12:00:22.000Z"}}