CVE-2026-7373: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in Rapid7 Metasploit Pro
Rapid7 Metasploit Pro is vulnerable to a local privilege escalation attack that allows a user to gain SYSTEM level control of a Windows host. When started the metasploitPostgreSQL service would start the postgres.exe child process which would in turn load an OpenSSL configuration file from a static location. This static location would be writable by a pre-existing "vagrant" user, if they already existed on the system. Metasploit does not create local accounts, an Administrator would need to create it. By planting a crafted openssl.cnf file an attacker can trick the high-privilege service into executing arbitrary commands. This effectively permits the unprivileged vagrant user to bypass security controls and achieve a full host compromise under the agent's SYSTEM level access.
AI Analysis
Technical Summary
Rapid7 Metasploit Pro 5.0.0 contains a local privilege escalation vulnerability (CVE-2026-7373) due to insecure handling of an OpenSSL configuration file by the metasploitPostgreSQL service. The service launches a postgres.exe child process that loads the openssl.cnf file from a fixed location writable by a local user named 'vagrant'. Because Metasploit does not create this user, its presence depends on prior administrative action. An attacker with access to this 'vagrant' account can place a malicious openssl.cnf file, causing the high-privilege service to execute arbitrary commands as SYSTEM. This vulnerability is classified under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), CWE-427 (Uncontrolled Search Path Element), and CWE-284 (Improper Access Control). The CVSS 4.0 base score is 8.5, indicating high severity. No official patch or remediation guidance is currently available from the vendor.
Potential Impact
Successful exploitation allows a local attacker with access to the 'vagrant' user account to escalate privileges to SYSTEM level on the affected Windows host. This results in full control over the host, bypassing security controls. The vulnerability requires the presence of the 'vagrant' user, which is not created by Metasploit but must be pre-existing. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should ensure that the 'vagrant' user does not exist on systems running Metasploit Pro 5.0.0 or restrict write permissions to the OpenSSL configuration file location used by the metasploitPostgreSQL service. Avoid running the service with unnecessary privileges and monitor for unauthorized local user accounts. Follow vendor updates closely for any forthcoming patches or official mitigations.
CVE-2026-7373: CWE-829 Inclusion of Functionality from Untrusted Control Sphere in Rapid7 Metasploit Pro
Description
Rapid7 Metasploit Pro is vulnerable to a local privilege escalation attack that allows a user to gain SYSTEM level control of a Windows host. When started the metasploitPostgreSQL service would start the postgres.exe child process which would in turn load an OpenSSL configuration file from a static location. This static location would be writable by a pre-existing "vagrant" user, if they already existed on the system. Metasploit does not create local accounts, an Administrator would need to create it. By planting a crafted openssl.cnf file an attacker can trick the high-privilege service into executing arbitrary commands. This effectively permits the unprivileged vagrant user to bypass security controls and achieve a full host compromise under the agent's SYSTEM level access.
CVSS v4.0
Score 8.5high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Rapid7 Metasploit Pro 5.0.0 contains a local privilege escalation vulnerability (CVE-2026-7373) due to insecure handling of an OpenSSL configuration file by the metasploitPostgreSQL service. The service launches a postgres.exe child process that loads the openssl.cnf file from a fixed location writable by a local user named 'vagrant'. Because Metasploit does not create this user, its presence depends on prior administrative action. An attacker with access to this 'vagrant' account can place a malicious openssl.cnf file, causing the high-privilege service to execute arbitrary commands as SYSTEM. This vulnerability is classified under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), CWE-427 (Uncontrolled Search Path Element), and CWE-284 (Improper Access Control). The CVSS 4.0 base score is 8.5, indicating high severity. No official patch or remediation guidance is currently available from the vendor.
Potential Impact
Successful exploitation allows a local attacker with access to the 'vagrant' user account to escalate privileges to SYSTEM level on the affected Windows host. This results in full control over the host, bypassing security controls. The vulnerability requires the presence of the 'vagrant' user, which is not created by Metasploit but must be pre-existing. There are no known exploits in the wild at this time.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, administrators should ensure that the 'vagrant' user does not exist on systems running Metasploit Pro 5.0.0 or restrict write permissions to the OpenSSL configuration file location used by the metasploitPostgreSQL service. Avoid running the service with unnecessary privileges and monitor for unauthorized local user accounts. Follow vendor updates closely for any forthcoming patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- rapid7
- Date Reserved
- 2026-04-28T23:54:36.962Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a068dc1ec166c07b09aca07
Added to database: 5/15/2026, 3:06:41 AM
Last enriched: 5/22/2026, 3:21:16 PM
Last updated: 6/5/2026, 8:51:59 AM
Views: 65
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.