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
    • 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-2020-7384

CVE-2020-7384: Rapid7 Metasploit msfvenom RCE Vulnerability

CVE-2020-7384 is a remote code execution vulnerability in Rapid7 Metasploit msfvenom that allows attackers to execute arbitrary commands via malicious APK files. This article covers technical details, affected versions, and steps.

Published: March 4, 2026

CVE-2020-7384 Overview

Rapid7's Metasploit msfvenom framework handles APK files in a way that allows for a malicious user to craft and publish a file that would execute arbitrary commands on a victim's machine. This command injection vulnerability (CWE-77) affects the APK template processing functionality within msfvenom, a popular payload generation tool used extensively by penetration testers and security researchers.

Critical Impact

Attackers can craft malicious APK template files that execute arbitrary system commands when processed by msfvenom, potentially compromising the security researcher's own system.

Affected Products

  • Rapid7 Metasploit Framework (msfvenom component)
  • Metasploit Framework versions prior to the security patch
  • Systems using msfvenom with untrusted APK templates

Discovery Timeline

  • 2020-10-29 - CVE-2020-7384 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7384

Vulnerability Analysis

This vulnerability represents a command injection flaw in how msfvenom processes APK template files. When users supply a custom APK file as a template for payload generation, the application fails to properly sanitize certain fields within the APK structure before passing them to system commands. This creates an opportunity for attackers to embed malicious commands within specially crafted APK files.

The irony of this vulnerability is significant: a tool designed for security testing can itself become the attack vector. Security researchers downloading APK templates from untrusted sources could unknowingly execute malicious commands on their own systems when generating payloads.

Root Cause

The root cause is improper input validation (CWE-77: Command Injection) in the APK template handling code. When msfvenom processes an APK file, it extracts and uses certain metadata fields in shell commands without proper sanitization. An attacker can inject shell metacharacters and commands into these fields, which are then executed with the privileges of the user running msfvenom.

Attack Vector

The attack requires local access and user interaction. An attacker must:

  1. Create a malicious APK file containing command injection payloads in specific metadata fields
  2. Distribute this file through channels where security researchers might obtain APK templates (forums, repositories, social engineering)
  3. Wait for a victim to use the malicious APK as a template with msfvenom

When the victim runs msfvenom with the -x flag to specify the malicious APK as a template, the injected commands execute on the victim's system. This could lead to complete system compromise, data exfiltration, or further lateral movement within the victim's network.

The vulnerability mechanism involves shell metacharacter injection through APK metadata fields that are processed by msfvenom during payload generation. For detailed technical analysis and exploitation techniques, refer to the Packet Storm security advisory and the Metasploit Framework 6.0.11 Command Injection advisory.

Detection Methods for CVE-2020-7384

Indicators of Compromise

  • Unexpected child processes spawned by msfvenom or Ruby interpreter
  • Suspicious network connections originating from the system running msfvenom
  • Anomalous file system modifications during payload generation operations
  • Shell commands in msfvenom logs that don't match expected behavior

Detection Strategies

  • Monitor process trees for msfvenom executions that spawn unexpected shell commands
  • Implement file integrity monitoring on APK template directories
  • Use behavioral analysis to detect command injection patterns in security tool usage
  • Review APK files before use with static analysis tools to identify embedded commands

Monitoring Recommendations

  • Enable verbose logging for Metasploit Framework operations
  • Monitor for unusual system calls during msfvenom payload generation
  • Track network connections initiated during APK processing
  • Implement application whitelisting to detect unexpected command execution

How to Mitigate CVE-2020-7384

Immediate Actions Required

  • Update Metasploit Framework to the latest patched version immediately
  • Avoid using APK templates from untrusted or unverified sources
  • Review any custom APK templates currently in use for suspicious content
  • Run msfvenom in isolated or sandboxed environments when using external templates

Patch Information

Rapid7 has addressed this vulnerability through a security update to the Metasploit Framework. The fix is available via the official GitHub pull request #14288. Users should update their Metasploit installation using msfupdate or by pulling the latest version from the GitHub repository.

Workarounds

  • Only use APK templates from trusted, verified sources or generate them internally
  • Run msfvenom in a containerized or virtual environment to limit blast radius
  • Manually inspect APK files before using them as templates
  • Implement network segmentation for systems running penetration testing tools
bash
# Update Metasploit Framework to latest version
msfupdate

# Alternatively, update via Git
cd /opt/metasploit-framework
git pull origin master
bundle install

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRapid7 Metasploit

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability70.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • Packet Storm Command Injection

  • Packet Storm Command Injection - Metasploit
  • Vendor Resources
  • GitHub Metasploit Pull Request
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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