CVE-2026-132038: Rapid7 Metasploit Framework Local Privilege Escalation via Insecure msfdb PostgreSQL Configuration
Rapid7 Metasploit Framework versions prior to 6.5.10 suffer from an Improper Access Control issue in the msfdb database initialisation component whereby a PostgreSQL cluster initialised via msfdb init is configured with trust authentication and a world-accessible Unix domain socket in /tmp, allowing any local user on the same host to authenticate as the passwordless postgres superuser and execute arbitrary operating system commands as the msfdb owner.
This issue is fixed in version 6.5.10.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.5.10
Event History
Frequently Asked Questions
Who is exposed to this vulnerability?
Hosts running Rapid7 Metasploit Framework earlier than 6.5.10 where a PostgreSQL cluster was initialized using msfdb init are exposed to local users on the same host.
What does an attacker need to exploit it?
An attacker needs local access to the affected host. No user interaction is required; the attacker can use the world-accessible Unix socket in /tmp and trust authentication to connect as the passwordless postgres superuser.
What level of access can exploitation provide?
A successful attacker can execute arbitrary operating-system commands as the owner of msfdb. The issue affects confidentiality, integrity, and availability.
How can I determine whether my deployment is affected?
Check whether the installed Metasploit Framework version is earlier than 6.5.10 and whether its PostgreSQL cluster was initialized through msfdb init. The vulnerable configuration uses trust authentication and a world-accessible PostgreSQL Unix domain socket in /tmp.