CVE-2026-16895: Authentication Bypass in Metasploit JSON-RPC Service When DB Health Check Fails

Published Aug 27, 2026
·
Updated

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 MSFWSJSONRPCAPITOKEN is not explicitly set, the application resets the internal state flag msf.authinitialized 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.

Affected Software

1 affected component
Metasploit Framework

Event History

Aug 27, 2026
CVE Published
via MITRE·03:14 AM
Data Sourced
via MITRE·03:14 AM
DescriptionWeakness
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to unauthenticated access?

The condition applies to the Metasploit JSON-RPC web service when a database health-check exception occurs and MSF_WS_JSON_RPC_API_TOKEN is not explicitly set. The resulting access is described as local access to the JSON-RPC request dispatcher.

2

What must occur for the authentication bypass to be triggered?

An exception must occur during the db.check database health check while MSF_WS_JSON_RPC_API_TOKEN is unset. This resets msf.auth_initialized to false, which the ApiToken Warden strategy treats as authentication not being required.

3

What configuration change can prevent the described fail-open path?

Explicitly set the MSF_WS_JSON_RPC_API_TOKEN environment variable. The described bypass condition depends on that variable not being explicitly configured.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203