Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain local user credentials
-
DeliveryLog into Windows host
-
ExploitIdentify writable OpenSSL config path
-
InstallPlant malicious openssl.cnf with DLL loading directive
-
C2Trigger metasploitPostgreSQL service restart
-
Executepostgres.exe loads attacker config as SYSTEM
-
ImpactExecute arbitrary code with SYSTEM privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
|
| Exploitation Conditions | Attacker must have interactive local access to the Windows system as a standard (non-administrative) user account. The Rapid7 Metasploit Pro software must be installed with the embedded PostgreSQL component (metasploitPostgreSQL service) present and configured to start. The OpenSSL library search path must include a directory that does not exist but resides within a filesystem location where the BUILTIN\Users group or Authenticated Users has write and create subdirectory permissions (typical for certain %PROGRAMDATA% subdirectories in default Windows configurations). The attacker must have the ability to create directories and files in this location, and the metasploitPostgreSQL service must restart or start after the malicious openssl.cnf is planted (either through service control permissions, system reboot, or scheduled maintenance). Exploitation is LIMITED by the requirement for local authenticated access-this is not remotely exploitable over the network. Remote attackers would first need to compromise a user account with local logon rights to the Metasploit Pro host. |
| Impact | Real-world risk is significant for organizations running Metasploit Pro on Windows in multi-user environments. CVSS 4.0 vector shows AV:L (local access required, limiting remote exploitation), AC:L (low complexity-no race conditions or special timing), PR:N (no authentication to the application itself required beyond Windows login as standard user), and UI:N (no user interaction needed). The environmental score shows high impacts across confidentiality, integrity, and availability (VC:H/VI:H/VA:L) with scope change (SC:H/SI:H/SA:H), reflecting full SYSTEM compromise from unprivileged context. E:P indicates proof-of-concept exists, elevating immediate risk. However, exploitation prerequisites substantially limit attack surface: attacker must already have interactive local access to the Windows host (not remote network exploitation), and the metasploitPostgreSQL service must be installed and running. This is not a wormable or mass-exploitation scenario-it requires initial foothold, making it a post-compromise privilege escalation step rather than initial access vector. SSVC assessment: exploitation is proven (POC exists), automatable within local context once conditions met, technical impact is total (SYSTEM access). Priority depends on threat model-high priority if Metasploit Pro runs on shared administrative workstations or jump hosts where multiple personnel have standard user access; lower priority for single-admin dedicated systems or properly hardened environments where local access is already tightly controlled. |
| Exploit ScenarioDerived | A red team operator or insider with standard Windows user credentials logs into a Windows server running Metasploit Pro. The attacker uses Process Monitor to identify that postgres.exe attempts to load openssl.cnf from C:\ProgramData\PostgreSQL\config\ (hypothetical path), which does not exist but is writable by Users group. The attacker creates this directory structure and plants a malicious openssl.cnf containing an engine directive that loads an attacker-controlled DLL from the same directory. The DLL contains a reverse shell payload. The attacker then triggers metasploitPostgreSQL service restart (via net stop/start if permissions allow, or waits for system reboot or scheduled service restart). Upon service startup, postgres.exe running as SYSTEM loads the malicious configuration, executes the attacker's DLL, and establishes a SYSTEM-level shell back to the attacker's listener, achieving full host compromise from an initially unprivileged position. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Local privilege escalation in Rapid7 Metasploit Pro allows unprivileged Windows users to achieve SYSTEM-level execution via OpenSSL configuration file hijacking. The metasploitPostgreSQL service loads openssl.cnf from a non-existent directory writable by standard users, enabling arbitrary command execution with SYSTEM privileges. Rated CVSS 8.5 (High) with proof-of-concept exploitation status (E:P). EPSS data not yet available. Not currently listed in CISA KEV catalog, suggesting vendor-disclosed rather than observed in-the-wild exploitation at time of analysis.
RemediationAI
Upgrade to the patched version of Metasploit Pro specified in Rapid7's security advisory at https://docs.rapid7.com/insight/metasploit-pro-release-notes/. The fix likely relocates OpenSSL configuration loading to a SYSTEM-only writable directory or explicitly specifies absolute paths with proper ACL verification. Until patching, implement defense-in-depth compensating controls: (1) Remove standard user write permissions from any directory in the OpenSSL configuration search path (use icacls or File Explorer security settings to set SYSTEM and Administrators-only write access on directories like C:\ProgramData\Rapid7 and subfolders-verify exact paths from process monitoring tools like Process Monitor). Side effect: may require administrative privileges for legitimate Metasploit Pro updates. (2) Restrict local logon rights to the Windows host running Metasploit Pro to only trusted administrators via Group Policy (Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment > Deny log on locally). Side effect: breaks shared workstation models. (3) Deploy application whitelisting (AppLocker or Windows Defender Application Control) to prevent execution of unauthorized DLLs/executables from user-writable locations. Side effect: requires careful policy tuning to avoid blocking legitimate Metasploit Pro operations. Validate post-patch by confirming postgres.exe no longer loads configuration from user-writable paths using Sysinternals Process Monitor with file system activity filtering.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
This vulnerability exploits a DLL search order hijacking variant through configuration file loading. The metasploitPostgreSQL service (which manages the embedded PostgreSQL database for Metasploit Pro) spawns postgres.exe under SYSTEM context. During initialization, the OpenSSL library attempts to load openssl.cnf from a path that does not exist but resides in a location where Windows standard users have write permissions (likely %PROGRAMDATA% or similar). Per CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), the high-privilege process trusts content from an attacker-controllable location. By crafting an openssl.cnf with malicious directives (such as engine loading commands pointing to attacker DLLs or external scripts), the attacker converts service startup into arbitrary code execution. This affects Metasploit Pro installations on Windows where the PostgreSQL service component is deployed with default configurations. CPE identifier cpe:2.3:a:rapid7:metasploit_pro confirms the affected product namespace.
Know when Metasploit Pro gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:H/E:P
Primary rating from Vendor (rapid7) · only source for this CVE.
CVSS VectorVendor: rapid7
Lifecycle Timeline
2DescriptionCVE.org
Rapid7 Metasploit Pro is vulnerable to a local privilege escalation attack that allows users to gain SYSTEM level control of a Windows host. Upon startup the metasploitPostgreSQL service the subsequent postgres.exe service attempts to load an OpenSSL configuration file from a non-existent directory that is writable by standard users. By planting a crafted openssl.cnf file an attacker can trick the high-privilege service into executing arbitrary commands. This effectively permits an unprivileged user to bypass security controls and achieve a full host compromise under the agent's SYSTEM level access.
Executive ViewAI
Rapid7 Metasploit Pro contains a local privilege escalation vulnerability that allows standard Windows users to gain SYSTEM-level access through OpenSSL configuration file manipulation. Organizations using Metasploit Pro on Windows systems face immediate risk of lateral movement and persistent access by any user with local login capability. This directly impacts operational security posture and increases insider threat surface on affected infrastructure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable Metasploit Pro services on systems where not actively required; (2) Implement strict Windows access controls limiting unprivileged user login to affected systems; (3) Monitor file system access to OpenSSL configuration directories via SACL auditing; (4) Run metasploitPostgreSQL service under dedicated low-privilege service account with no interactive login capability; (5) Apply principle of least privilege to all local user accounts on Metasploit Pro hosts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
EUVD-2026-30498
GHSA-q6qj-wmmg-cc85
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB