> ## Content Index
> Fetch the complete content index at: https://ping2prompt.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Metasploit 6.5.10 fixes local takeover of the msfdb PostgreSQL database
- URL: https://ping2prompt.com/metasploit-6-5-10-fixes-msfdb-postgresql-local-takeover/
- Published: 2026-11-18T15:29:43.000Z
- Updated: 2026-11-18T15:29:43.000Z
- Description: Rapid7 Metasploit Framework before 6.5.10 has a flaw, CVE-2026-132038, in msfdb: any local user can reach its PostgreSQL database without a password and run OS commands as the msfdb owner. Update to 6.5.10 or later.
- Author: Ping2Prompt Newsroom
- Tags: Metasploit, Security tools, Vulnerabilities, High, #short-ping

## Metasploit before 6.5.10 lets local users run commands via msfdb

CVE-2026-132038 is an improper access control flaw in the database setup that Rapid7 Metasploit Framework uses, the msfdb component. A local user can run arbitrary operating system commands as the account that owns the msfdb database. The CVE record scores it 7.8 (high) under CVSS v3.1.

In plain terms, the score reflects an attacker who is already on the machine with a low-privilege account, needs no special conditions and no user interaction, and gets high impact on confidentiality, integrity and availability.

## Trust authentication and a world-open socket in /tmp

A PostgreSQL cluster created through `msfdb init` is set up with trust authentication, which means no password is checked. Its Unix domain socket in `/tmp` is accessible to everyone on the host. Any local user can therefore connect through that socket as the passwordless `postgres` superuser. From there the attacker can run OS commands as the msfdb owner.

## Metasploit installs older than 6.5.10 that use msfdb

Rapid7 Metasploit Framework versions prior to 6.5.10 are affected. The exposed setup comes from a database cluster initialised with `msfdb init`, so check whether your install uses that database. The attack needs local access to the host, not network access. The exploitation status is unknown: the sources do not say whether the flaw is being exploited.

## Update to Metasploit 6.5.10

The vendor states the issue is fixed in version 6.5.10, so upgrade to that release or later. The CVE record lists GitHub pull request 22105 in the `rapid7/metasploit-framework` repository as a reference, and the record says its status is "Received". Commands and paths here come from the CVE record listed under Sources, so check them against your own install before running them.

## What the CVE record leaves open

The record does not say whether databases already created with `msfdb init` need manual changes after the upgrade.

| Product                     | Affected        | Fixed  |
| --------------------------- | --------------- | ------ |
| Rapid7 Metasploit Framework | prior to 6.5.10 | 6.5.10 |

## Sources

- [nvd.nist.gov/vuln/detail/CVE-2026-132038](https://nvd.nist.gov/vuln/detail/CVE-2026-132038?ref=ping2prompt.com)

---

This story was produced with AI assistance from the sources listed above and fact-checked against them before publication. Read our [editorial methodology](https://ping2prompt.com/about-how-we-work/) and the [corrections log](https://ping2prompt.com/corrections/). Spotted an error? Email [editor@ping2prompt.com](mailto:editor@ping2prompt.com).