CVE-2026-121139
Missing authentication in Metasploit msf-ws bootstrap
- CVSS 4.0
- 7.3 high
- EPSS
- —
- Published
- ·
- Modified
Rapid7 Metasploit msf-ws exempts POST /api/v1/users from authentication while the users table is empty so the first administrator can be created. The route calls AdminApiToken authentication, which succeeds immediately when msf.auth_initialized is false and never checks that the caller is an administrator. An unauthenticated caller who can reach the API in that state can create an administrator account. The flaw is fixed in version 6.5.9.
What to do: Upgrade Metasploit msf-ws to 6.5.9.
| Product | Affected | Fixed in |
|---|---|---|
| Rapid7 Metasploit msf-ws | — | 6.5.9 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Description · NVD
The Rapid7 Metasploit msf-ws suffers from a missing authentication vulnerability whereby the REST API grants an unauthenticated "bootstrap" exemption so that the very first administrator can be created when the users table is empty. While the table is empty, POST /api/v1/users is exempt from authentication by design: the route handler calls warden.authenticate!(scope: :admin_api), which resolves to AdminApiToken. The inherited ApiToken#authenticate! short-circuits and returns success!() whenever msf.auth_initialized is false, without ever evaluating AdminApiToken's administrator check. In that state the endpoint creates a user — including an administrator — for an entirely unauthenticated caller. This issue has been fixed in version 6.5.9.
- Weakness
- CWE-306
- Vector
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
In the news
0 storiesNo ingested article mentions this CVE yet.