Research

Metasploit Framework

Unauthenticated access to Metasploit Web Service credentials

Critical (9.8)Published

CVE-2026-87689 lets an unauthenticated network attacker read, modify, or delete stored Metasploit Framework credentials through its Web Service REST API.

Affected
Metasploit Framework 6.5.4 and earlier
Attack requirements
Unauthenticated network access to the Metasploit Web Service (msf-ws) listener, which defaults to 0.0.0.0:8080

Impact

An attacker can disclose passwords, hashes, and private keys, change credential records, or permanently delete them. In shared team deployments, this compromises credential material collected during penetration-test engagements. Rapid7 assigns a CVSS 3.1 score of 9.8.

Technical detail

  • Msf::WebServices::CredentialServlet omits warden.authenticate! in the update_credential (PUT) and delete_credentials (DELETE) handlers for /api/v1/credentials.
  • Both handlers call lib/msf/core/db_manager/cred.rb, which does not perform an independent authorization check.
  • Unauthenticated PUT requests can return stored credential material and modify records; DELETE requests can permanently remove records.

Remediation

  • Upgrade to Metasploit Framework 6.5.5 or later, which authenticates requests before either handler processes them.
  • Restrict network access to the msf-ws listener to trusted clients until the update is applied.