Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87689 Overview
CVE-2026-87689 is a missing authentication vulnerability in the Metasploit Framework Web Service REST API (msf-ws). The Msf::WebServices::CredentialServlet component fails to invoke warden.authenticate! on the update_credential (PUT) and delete_credentials (DELETE) handlers for /api/v1/credentials. Any client that can reach the service on its default 0.0.0.0:8080 listener can read, modify, or permanently delete every stored credential — including passwords, hashes, and private keys — without presenting credentials. All Metasploit Framework versions through 6.5.4 are affected, and the issue is resolved in 6.5.5.
Critical Impact
Unauthenticated network attackers can tamper with or destroy the entire credential store used by shared team engagements, enabling credential theft, operational sabotage, and lateral access to any assets referenced by those credentials.
Affected Products
- Rapid7 Metasploit Framework versions up to and including 6.5.4
- Deployments exposing msf-ws on the default 0.0.0.0:8080 listener
- Shared team engagements relying on the Metasploit credential store
Discovery Timeline
- 2026-10-13 - CVE-2026-87689 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-87689
Vulnerability Analysis
The Metasploit Framework Web Service exposes a REST API for programmatic access to workspaces, credentials, hosts, and loot. Every servlet route in Msf::WebServices::CredentialServlet calls warden.authenticate! as a gating step before dispatching the request handler, with two exceptions. The update_credential handler bound to PUT /api/v1/credentials and the delete_credentials handler bound to DELETE /api/v1/credentials dispatch straight into lib/msf/core/db_manager/cred.rb without any authentication check.
The downstream cred.rb database manager performs no authorization logic of its own. It trusts that upstream HTTP routing has already validated the caller. The result is that any TCP client able to reach port 8080 can issue arbitrary mutations against the credential table. This is categorized as Missing Authentication for a Critical Function [CWE-306].
Root Cause
The root cause is an inconsistent authentication pattern across sibling route handlers in a single servlet. The read, create, and bulk-read routes in CredentialServlet invoke warden.authenticate! before any application logic executes. The PUT and DELETE handlers were authored or modified without that guard, leaving two unauthenticated entry points into a security-sensitive data store.
Attack Vector
Exploitation requires only network reachability to the msf-ws listener. By default, the service binds to 0.0.0.0:8080, which exposes it to every interface on the host unless the operator has firewalled the port. An attacker sends a crafted PUT or DELETE request to /api/v1/credentials with no session cookie, API key, or bearer token. The handler accepts the request and either overwrites credential records with attacker-controlled values or purges them entirely. Stored passwords, NTLM hashes, Kerberos tickets, and SSH private keys gathered during a red team engagement can be exfiltrated via GET reconnaissance on other endpoints, then wiped to destroy evidence.
No public exploit code is listed in the enriched data, and the issue is not present on the CISA Known Exploited Vulnerabilities list.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-87689
Indicators of Compromise
- Unauthenticated PUT /api/v1/credentials or DELETE /api/v1/credentials requests in msf-ws access logs
- Unexpected deletions or modifications of credential records in the Metasploit database that do not correlate with analyst activity
- Inbound connections to TCP/8080 from hosts outside the operator network or jump box subnet
- Credential records whose updated_at timestamps change without a corresponding console session
Detection Strategies
- Enable and ship msf-ws request logging to a central log store, then alert on any 2xx response to PUT or DELETE on /api/v1/credentials originating from an unexpected source address
- Baseline the set of client IPs that legitimately interact with the Metasploit REST API and alert on deviations
- Monitor the PostgreSQL database backing Metasploit for bulk DELETE operations against the credentials table
Monitoring Recommendations
- Capture netflow or firewall telemetry for TCP/8080 on hosts running Metasploit and alert on connections from outside the authorized management range
- Track the Metasploit Framework version deployed on each operator workstation and flag any instance at 6.5.4 or earlier
- Correlate credential store write events with authenticated console sessions to surface activity that lacks an upstream user context
How to Mitigate CVE-2026-87689
Immediate Actions Required
- Upgrade Metasploit Framework to version 6.5.5 or later on every operator host, team server, and CI image
- Restrict the msf-ws listener to 127.0.0.1 or an internal management interface and block TCP/8080 at the host firewall for all external sources
- Rotate every credential, hash, and private key stored in affected Metasploit databases, assuming exposure during the vulnerable window
- Audit msf-ws logs and the credential table for unauthorized reads, modifications, or deletions
Patch Information
Rapid7 fixed the issue in Metasploit Framework 6.5.5 by adding warden.authenticate! as the first statement in both the update_credential and delete_credentials handlers, matching the authentication pattern used by every other route in CredentialServlet. See the Metasploit 6.5.5 release notes and the Metasploit Framework repository for the full change set.
Workarounds
- Bind msf-ws to the loopback interface by starting the service with an explicit --address 127.0.0.1 argument instead of the default 0.0.0.0
- Place msf-ws behind an authenticating reverse proxy that rejects any request missing a valid session or mutual TLS certificate
- Disable the web service entirely on hosts that do not require REST API access and interact with Metasploit through msfconsole only
# Configuration example: restrict msf-ws to loopback and firewall port 8080
msfdb --component webservice init --address 127.0.0.1 --port 8080
# Linux host firewall: drop external traffic to the Metasploit web service
iptables -A INPUT -p tcp --dport 8080 ! -s 127.0.0.1 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

