Read the docs

Local privilege escalation in Rapid7 Metasploit Framework via msfdb PostgreSQL

Priority LOW 35CWE-284Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00167 3rd percentileScored 2026-11-30
Fix Fixed Metasploit Framework (Rapid7): 6.5.10

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

VendorProductAffected versionsFixed inStatusSource
Rapid7Metasploit Frameworkbefore 6.5.106.5.10Patch availableCNA
  • Metasploit Framework VendorRapid7 Affected before 6.5.10 Fixed in 6.5.10 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:rapid7:metasploit:*:*:*:*:*:*:*:*——Rapid7
  • cpe:2.3:a:rapid7:metasploit:*:*:*:*:*:*:*:* Versions — — ·Rapid7

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

  1. 2026-11-18 Threatist record created from CVE-2026-132038
  2. 2026-11-18 Alias added: GHSA-xfq9-5cm6-5p27
  3. 2026-11-18 CISA SSVC decision points changed
  4. 2026-11-19 CISA SSVC decision points changed

References

  • 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
See all 143 →

Sources