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
    • 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-2022-42948

CVE-2022-42948: Cobalt Strike RCE Vulnerability

CVE-2022-42948 is a remote code execution vulnerability in Helpsystems Cobalt Strike 4.7.1 caused by improper HTML tag escaping in Swing components. This article covers the technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-42948 Overview

CVE-2022-42948 is a critical remote code execution vulnerability affecting Cobalt Strike 4.7.1. The vulnerability exists due to improper HTML tag escaping when content is displayed on Java Swing components within the Cobalt Strike user interface. An attacker can exploit this flaw by injecting crafted HTML code that, when rendered by the Swing UI, enables remote code execution within the context of the Cobalt Strike application.

This vulnerability is particularly noteworthy because it targets a tool commonly used by red teams and penetration testers, turning offensive security infrastructure into a potential attack surface. The irony of exploiting an exploitation framework is not lost on security researchers, and this vulnerability has been actively exploited in the wild.

Critical Impact

Attackers can achieve remote code execution on systems running vulnerable Cobalt Strike team servers and clients by injecting malicious HTML content that executes arbitrary code when rendered by the Java Swing UI components.

Affected Products

  • HelpSystems Cobalt Strike 4.7.1
  • Earlier versions of Cobalt Strike may also be affected

Discovery Timeline

  • 2023-03-24 - CVE-2022-42948 published to NVD
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2022-42948

Vulnerability Analysis

This vulnerability falls under CWE-116 (Improper Encoding or Escaping of Output), a class of vulnerabilities that occurs when software fails to properly encode or escape output before it is rendered or processed by downstream components.

In the case of CVE-2022-42948, the Cobalt Strike application utilizes Java Swing components for its graphical user interface. Swing components, by design, support HTML rendering for rich text display. When user-controlled input containing HTML tags is passed to these components without proper sanitization, the embedded HTML is interpreted and rendered.

The vulnerability enables attackers to inject specially crafted HTML that can leverage Java's HTML rendering capabilities to execute arbitrary code. This occurs because Swing's HTML parser supports various HTML features that can be abused to trigger code execution, particularly through the use of malicious <object> tags or other HTML elements that can instantiate Java objects.

Root Cause

The root cause of CVE-2022-42948 is the failure to properly escape or sanitize HTML tags before displaying content on Swing components. When Cobalt Strike processes and displays certain data (such as beacon metadata, hostnames, or user-supplied input), it passes this content directly to Swing components without stripping or encoding HTML special characters. Java Swing's inherent HTML rendering capability then interprets any embedded HTML, allowing malicious payloads to execute.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can deliver malicious HTML payloads through various channels that eventually get rendered in the Cobalt Strike UI, including:

  1. Beacon Metadata Injection: Compromised or malicious beacons can send crafted metadata containing HTML injection payloads that execute when viewed by operators
  2. Hostname/Process Name Injection: Systems with deliberately crafted hostnames or process names containing malicious HTML
  3. User Input Fields: Any field that accepts user input and displays it in the Swing UI without proper sanitization

When the malicious HTML is rendered by the Swing component, it can leverage Java's HTML processing to instantiate objects and execute arbitrary code with the privileges of the Cobalt Strike process.

The exploitation mechanism involves crafting HTML that, when parsed by Java's Swing HTML renderer, triggers object instantiation or other code execution primitives. For detailed technical exploitation information, see the SecMaster advisory and Red Packet Security analysis.

Detection Methods for CVE-2022-42948

Indicators of Compromise

  • Unusual HTML tags or encoded content appearing in Cobalt Strike log files
  • Beacon metadata containing suspicious HTML elements such as <object>, <applet>, or JavaScript event handlers
  • Unexpected Java process spawning from Cobalt Strike processes
  • Anomalous network connections originating from Cobalt Strike team server or client processes

Detection Strategies

  • Monitor Cobalt Strike team server logs for HTML injection patterns in beacon communications
  • Implement network traffic analysis to detect HTML-encoded payloads in beacon check-ins
  • Deploy endpoint detection to identify unusual child processes spawned by Cobalt Strike Java processes
  • Audit beacon metadata fields for suspicious content before rendering in the UI

Monitoring Recommendations

  • Enable verbose logging on Cobalt Strike team servers to capture all beacon communications
  • Implement file integrity monitoring on Cobalt Strike installation directories
  • Configure alerts for any outbound connections from Cobalt Strike processes to unexpected destinations
  • Review CISA KEV alerts as this vulnerability is listed in the Known Exploited Vulnerabilities catalog

How to Mitigate CVE-2022-42948

Immediate Actions Required

  • Upgrade Cobalt Strike to the latest available version immediately
  • Restrict network access to Cobalt Strike team servers to trusted IP ranges only
  • Review all active beacon connections for potentially malicious metadata
  • Implement network segmentation to isolate red team infrastructure from production networks
  • Monitor for exploitation attempts using the detection strategies outlined above

Patch Information

HelpSystems has addressed this vulnerability in versions released after 4.7.1. Organizations should consult the Cobalt Strike blog for official patch information and upgrade instructions. Given this vulnerability's inclusion in CISA's Known Exploited Vulnerabilities catalog, federal agencies are required to remediate according to binding operational directives.

Workarounds

  • Implement strict input validation on any data sources that display content in the Cobalt Strike UI
  • Use network-level filtering to block potentially malicious HTML payloads from reaching the team server
  • Consider running Cobalt Strike in a sandboxed or isolated environment to limit the impact of potential exploitation
  • Restrict operator access to Cobalt Strike interfaces until patches are applied
bash
# Example: Restrict team server access to specific IP ranges using iptables
iptables -A INPUT -p tcp --dport 50050 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 50050 -j DROP

# Verify Cobalt Strike version
java -XX:ParallelGCThreads=4 -jar cobaltstrike.jar --version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechHelpsystems Cobalt Strike

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability19.51%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-116
  • Technical References
  • SecMaster CVE-2022-42948 Fix

  • Red Packet Security CVE-2022-42948

  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Cobalt Strike Blog
  • Related CVEs
  • CVE-2022-39197: Cobalt Strike XSS Vulnerability

  • CVE-2022-23317: Cobalt Strike Information Disclosure Flaw

  • CVE-2021-36798: Cobalt Strike Team Server DoS Vulnerability
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