BreachSpiderVerified, not vibes

CVE-2022-42948 in Helpsystems Cobalt Strike

Known-exploited (CISA) since 2023-03-30 Critical 9.8

Cobalt Strike 4.7.1 fails to properly escape HTML tags when they are displayed on Swing components. By injecting crafted HTML code, it is possible to remotely execute code in the Cobalt Strike UI.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS2.7%
EPSS percentile87th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Helpsystems Cobalt Strike 4.7.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedYes added 2023-03-30
Public exploitNot confirmed

Official description

Cobalt Strike 4.7.1 fails to properly escape HTML tags when they are displayed on Swing components. By injecting crafted HTML code, it is possible to remotely execute code in the Cobalt Strike UI.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-42948
BreachSpider IDBS-2023-GLOBAL-334552-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2023-03-24
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-116: CWE-116

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-116

CAPEC-85 AJAX Footprinting via CWE-116

CAPEC-73 User-Controlled Filename via CWE-116

CAPEC-104 Cross Zone Scripting via CWE-116

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2022-42948 affects Cobalt Strike 4.7.1, where improper HTML tag escaping in Swing components can lead to remote code execution. This vulnerability has a CVSS score of 9.8, indicating critical severity. The affected vendor is Helpsystems, and the vulnerability is listed in the KEV catalog. Immediate action is required to mitigate the risk of exploitation.

The vulnerability arises from the failure to properly escape HTML tags when they are rendered in Swing components within the Cobalt Strike UI. An attacker can inject crafted HTML code to achieve remote code execution. The attack vector is network-based, requiring no user interaction or privileges, making it highly exploitable.

Compensating controls AI-drafted, review before use

Implement strict input validation and output encoding for all user-supplied data in the Cobalt Strike application. Ensure that all HTML content is sanitized before being rendered in the UI.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2022-42948?

CVE-2022-42948 affects Cobalt Strike 4.7.1, where improper HTML tag escaping in Swing components can lead to remote code execution. This vulnerability has a CVSS score of 9.8, indicating critical severity. The affected vendor is Helpsystems, and the vulnerability is listed in the KEV catalog. Immediate action is required to mitigate the risk of exploitation.

What is the CVSS score for CVE-2022-42948?

CVE-2022-42948 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.7%.

Is CVE-2022-42948 actively exploited?

Yes. CVE-2022-42948 is in the CISA known-exploited catalog (added 2023-03-30). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2022-42948?

Priority: IMMEDIATE.

What systems are affected by CVE-2022-42948?

CVE-2022-42948 affects Helpsystems Cobalt Strike.

What NERC-CIP standard applies to CVE-2022-42948?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through the injection of malicious HTML code, which can compromise the integrity and availability of the control system.

What IEC 62443 requirement maps to CVE-2022-42948?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves the protection against malicious software and unauthorized access, which is essential for maintaining the security of industrial control systems.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Helpsystems","product":"Cobalt Strike","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.