Skip to main content
EPSS 2.1%top 19%

CVE-2026-5463: CWE-77 Improper neutralization of special elements leading to command injection in Dan McInerney pymetasploit3

0
Critical
VulnerabilityCVE-2026-5463cvecve-2026-5463cwe-77gcve
Published: 04/03/2026 (04/03/2026, 04:32:23 UTC)
Source: CVE Database V5
Vendor/Project: Dan McInerney
Product: pymetasploit3

Description

Command injection vulnerability in console.run_module_with_output() in pymetasploit3 through version 1.0.6 allows attackers to inject newline characters into module options such as RHOSTS. This breaks the intended command structure and causes the Metasploit console to execute additional unintended commands, potentially leading to arbitrary command execution and manipulation of Metasploit sessions.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
High
Vuln. Availability
Low
Subsq. Confidentiality
Low
Subsq. Integrity
High
Subsq. Availability
Low
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L

Affected software

Dan McInerney

pymetasploit3

Affected versions
>=0 <=1.0.6
pymetasploit3
pkg:pypi/pymetasploit3
Affected versions
<1.0.7
pymetasploit3
pkg:pypi/pymetasploit3
Affected versions
>=0 <=1.0.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/13/2026, 16:40:27 UTC

Technical Analysis

The vulnerability in pymetasploit3 (up to version 1.0.6) involves improper sanitization of input in the console.run_module_with_output() method. Attackers can inject newline characters into module options such as RHOSTS, disrupting the intended command flow and causing the Metasploit console to execute additional unintended commands. This can lead to arbitrary command execution and unauthorized manipulation of Metasploit sessions. The CVSS 4.0 base score is 9.3, indicating a critical severity with network attack vector, no required privileges or user interaction, and high impact on integrity and availability.

Potential Impact

Successful exploitation allows remote attackers to execute arbitrary commands within the Metasploit console environment without authentication or user interaction. This can compromise the integrity and availability of Metasploit sessions, potentially leading to unauthorized control or disruption of penetration testing activities.

Mitigation Recommendations

No official patch or fix is currently available for this vulnerability. Users should monitor the vendor's advisories for updates. Until a fix is released, avoid using untrusted input in module options such as RHOSTS when invoking console.run_module_with_output().

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
TuranSec
Date Reserved
2026-04-03T04:28:08.555Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69cf4ec6e6bfc5ba1d767352

Added to database: 04/03/2026, 05:23:18 UTC

Last enriched: 08/13/2026, 16:40:27 UTC

Last updated: 09/12/2026, 22:01:35 UTC

Views: 225

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses