Local privilege escalation in Rapid7 Metasploit Framework via msfdb PostgreSQL
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-284.
Summary
Rapid7 Metasploit Framework versions from 0 before 6.5.10 have an improper access control flaw (CWE-284) in the msfdb database initialisation component. A PostgreSQL cluster created by msfdb init uses trust authentication and a world-accessible Unix domain socket in /tmp, so any local user on the same host can authenticate as the passwordless postgres superuser. That lets a local user with low privileges run arbitrary operating system commands as the msfdb owner.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Rapid7 Metasploit Framework to version 6.5.10 or later, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
- Fix · CNA Metasploit Framework (Rapid7) Fixed in 6.5.10
Timeline
- 2026-11-18 Threatist record created from CVE-2026-132038
- 2026-11-18 Alias added: GHSA-xfq9-5cm6-5p27
- 2026-11-18 CISA SSVC decision points changed
- 2026-11-19 CISA SSVC decision points changed
References
More Rapid7 vulnerabilities
- TI-2023-01233 Rapid7 InsightCloudSec resource.db() method access CVSS 3.1HIGH 8.8
- TI-2023-01231 Rapid7 InsightCloudSec getattr() method access CVSS 3.1HIGH 8.8
- TI-2023-01232 Rapid7 InsightCloudSec box object access CVSS 3.1HIGH 8.1
- TI-2024-00358 Rapid7 Minerva Armor Privilege Escalation CVSS 3.1HIGH 7.8
- TI-2024-02985 Rapid7 Insight Agent Sensitive Key Exposed To Local Users CVSS 3.1MEDIUM 6.8
- TI-2019-04008 Rapid7 Metasploit HTTP Handler Denial of Service CVSS 3.1HIGH 7.5
Sources
- CVE-2026-132038 · CVE Program
- CVE-2026-132038 · NVD
- FIRST EPSS
- GHSA-xfq9-5cm6-5p27 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences