The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5463

CVE-2026-5463: pymetasploit3 RCE Vulnerability

CVE-2026-5463 is a command injection flaw in pymetasploit3 that allows attackers to inject newline characters and execute arbitrary commands. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-5463 Overview

A critical command injection vulnerability exists in the console.run_module_with_output() function within pymetasploit3 through version 1.0.6. This vulnerability allows attackers to inject newline characters into module options such as RHOSTS, breaking the intended command structure and causing the Metasploit console to execute additional unintended commands. Successful exploitation can lead to arbitrary command execution and manipulation of Metasploit sessions.

Critical Impact

Attackers can achieve arbitrary command execution by injecting newline characters into module options, potentially compromising Metasploit sessions and the underlying system.

Affected Products

  • pymetasploit3 versions through 1.0.6
  • Applications using the pymetasploit3 library for Metasploit Framework automation
  • Systems running Metasploit Framework with vulnerable pymetasploit3 integrations

Discovery Timeline

  • 2026-04-03 - CVE-2026-5463 published to NVD
  • 2026-04-03 - Last updated in NVD database

Technical Details for CVE-2026-5463

Vulnerability Analysis

This command injection vulnerability (CWE-77) affects the pymetasploit3 Python library, which provides a Python interface for interacting with the Metasploit Framework's RPC API. The vulnerability resides in the console.run_module_with_output() function, which fails to properly sanitize user-controlled input before passing it to the Metasploit console for execution.

When module options like RHOSTS are processed, the function does not adequately filter or escape newline characters (\n). This allows an attacker to inject these characters into option values, effectively breaking out of the intended command context and injecting additional Metasploit console commands.

The impact is significant as it allows attackers to execute arbitrary Metasploit commands within an active session. This could lead to unauthorized access to target systems, manipulation of ongoing penetration testing sessions, data exfiltration, or pivoting to other network resources accessible through the Metasploit framework.

Root Cause

The root cause is improper input validation (CWE-77: Improper Neutralization of Special Elements used in a Command). The console.run_module_with_output() function does not sanitize or validate input parameters for special characters, particularly newline characters, before constructing and executing commands on the Metasploit console.

The function accepts user-supplied values for module options and passes them directly to the underlying console without stripping or escaping control characters. When a newline character is included in an option value, it terminates the current command and allows subsequent characters to be interpreted as a new command.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker who can control input to the console.run_module_with_output() function can craft malicious payloads containing newline characters within module option values.

For example, if an application using pymetasploit3 accepts user input for the RHOSTS option without proper sanitization, an attacker could inject a value like 192.168.1.1\nset PAYLOAD windows/meterpreter/reverse_tcp\nrun to execute additional commands beyond the intended scope.

The vulnerability mechanism involves newline character injection that breaks command parsing boundaries. When the Metasploit console receives the crafted input, it interprets the newline as a command terminator and executes any subsequent text as a new command. For detailed technical information, refer to the pymetasploit3 GitHub repository.

Detection Methods for CVE-2026-5463

Indicators of Compromise

  • Unusual or unexpected commands appearing in Metasploit console logs
  • Module options containing newline characters (\n, %0a, or \r\n)
  • Unexpected module executions or payload changes in Metasploit sessions
  • Anomalous network traffic originating from Metasploit Framework instances

Detection Strategies

  • Monitor pymetasploit3 API calls for input containing newline or carriage return characters
  • Implement logging for all console.run_module_with_output() invocations with full parameter capture
  • Use application-level input validation to detect and block control characters in module options
  • Deploy runtime application self-protection (RASP) solutions to detect command injection attempts

Monitoring Recommendations

  • Enable verbose logging on Metasploit Framework console sessions
  • Monitor system processes spawned by Metasploit for unexpected child processes
  • Implement alerting for Metasploit sessions executing commands outside expected parameters
  • Review audit logs for applications integrating pymetasploit3 for anomalous input patterns

How to Mitigate CVE-2026-5463

Immediate Actions Required

  • Audit all applications using pymetasploit3 version 1.0.6 or earlier for potential exposure
  • Implement strict input validation for all user-controllable parameters passed to pymetasploit3 functions
  • Strip or reject input containing newline characters (\n, \r) before passing to module options
  • Isolate systems running vulnerable pymetasploit3 implementations from untrusted networks

Patch Information

No official patch has been confirmed at this time. Organizations should monitor the pymetasploit3 GitHub repository and the PyPI package page for security updates. Until a patch is available, apply the workarounds listed below.

Workarounds

  • Implement application-level input sanitization to remove newline and carriage return characters from all module option values
  • Use allowlists for acceptable characters in module options (alphanumeric, periods, and hyphens for IP addresses)
  • Run pymetasploit3 integrations in isolated environments with restricted network access
  • Consider temporarily disabling user-controllable input to Metasploit module options until patched
bash
# Input sanitization example - strip newlines before passing to pymetasploit3
# In your application code, sanitize input before calling run_module_with_output()
# Replace newline and carriage return characters
sanitized_rhosts=$(echo "$user_input" | tr -d '\n\r')

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMetasploit

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability1.78%

  • Known ExploitedNo
  • CVSS Vector
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-77
  • Technical References
  • GitHub PoC Repository

  • PyPI Package Information
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English