CVE-2022-42948
published 2023-03-24CVE-2022-42948: 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…
PriorityP181critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITW
CISA Known Exploited Vulnerabilitydue 2023-04-20
Exploited in the wild
EPSS
2.71%
84.1th percentile
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.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| helpsystems | cobalt_strike | — | — |
Detection & IOCsextracted from sources · hover to see the quote
- →CVE-2022-42948 involves injecting crafted HTML into Cobalt Strike UI Swing components to achieve RCE; monitor for unexpected HTML tags in Cobalt Strike beacon/operator input fields ↗
- →The vulnerability is rooted in Java Swing's HTML rendering; detect exploitation attempts by monitoring for HTML injection patterns (e.g., <script>, <img>, <object> tags) in data rendered by Cobalt Strike UI components ↗
- ·Vulnerability is specific to Cobalt Strike version 4.7.1 and earlier; version 4.7.2 (out-of-band update) contains the fix — confirm version before triaging alerts ↗
- ·Vendor patch reference is the out-of-band Cobalt Strike 4.7.2 update; detections should be validated against patched instances to reduce false positives ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
cisa9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
CISA
Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
cisa·2023-03-30·CVSS 9.8
CVE-2022-42948 [CRITICAL] CWE-79 Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
Vulnerability: Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
Affected: Fortra Cobalt Strike
Fortra Cobalt Strike User Interface contains an unspecified vulnerability rooted in Java Swing that may allow remote code execution.
Required Action: Apply updates per vendor instructions.
Notes: https://www.cobaltstrike.com/blog/out-of-band-update-cobalt-strike-4-7-2/; https://nvd.nist.gov/vuln/detail/CVE-2022-42948
Remediation Due Date: 2023-04-20
GHSA
GHSA-c8qh-hq9w-qh3p: Cobalt Strike 4
ghsa_unreviewed·2023-03-24
CVE-2022-42948 [CRITICAL] CWE-116 GHSA-c8qh-hq9w-qh3p: Cobalt Strike 4
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.
VulnCheck
Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
vulncheck·2022·CVSS 9.8
CVE-2022-42948 [CRITICAL] CWE-79 Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
Fortra Cobalt Strike User Interface Remote Code Execution Vulnerability
Fortra Cobalt Strike User Interface contains an unspecified vulnerability rooted in Java Swing that may allow remote code execution.
Affected: Fortra Cobalt Strike
Required Action: Apply updates per vendor instructions.
Exploitation References: https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
Remediation Due: 2023-04-20
No detection rules found.
No public exploits indexed.
https://thesecmaster.com/how-to-fix-cve-2022-42948-a-critical-rce-vulnerability-in-cobalt-strike/https://www.cobaltstrike.com/blog/https://www.redpacketsecurity.com/helpsystems-cobalt-strike-code-execution-cve-2022-42948/https://thesecmaster.com/how-to-fix-cve-2022-42948-a-critical-rce-vulnerability-in-cobalt-strike/https://www.cobaltstrike.com/blog/https://www.redpacketsecurity.com/helpsystems-cobalt-strike-code-execution-cve-2022-42948/https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-42948
2023-03-24
Published
2023-03-30
Added to CISA KEV
Exploited in the wild