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

- Severity: Medium 5.1 (CVSS:4.0, scored by rapid7) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-27T03:14:21.055Z
- Modified: 2026-08-28T21:17:10.720Z
- Weaknesses: CWE-305
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: rapid7

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

(As written by CVE List.)

## Affected

- JSON-RPC: before 6.5.2

## References

- <https://github.com/rapid7/metasploit-framework/pull/21768> (exploit, patch)
- <https://www.rapid7.com/blog/post/pt-metasploit-wrap-up-lot-of-summer-shells-and-fit-http-profiles/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-16895](https://www.cve.org/CVERecord?id=CVE-2026-16895), CVE Terms of Use, modified 2026-08-27
- NVD: [CVE-2026-16895](https://nvd.nist.gov/vuln/detail/CVE-2026-16895), Public domain, modified 2026-08-28

---

Page: https://cve.day/CVE-2026-16895 · Whole record: https://cve.day/CVE-2026-16895.json · Rebuilt by cve.day 2026-11-25T22:59:35.453Z
