LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2022-39197: Fortra Cobalt Strike Teamserver Cross-Site Scripting (XSS) Vulnerability

RBRecent Breaches Vulnerability Intelligence·Mar 30, 2023
High⚠ Actively exploited (CISA KEV)
High
Severity
Active
CISA KEV
No
Ransomware use
Apr 20, 2023
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2022-39197 to its Known Exploited Vulnerabilities catalog on Mar 30, 2023, with a federal patch deadline of Apr 20, 2023 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

Fortra Cobalt Strike contains a cross-site scripting (XSS) vulnerability in Teamserver that would allow an attacker to set a malformed username in the Beacon configuration, allowing them to execute…

CVE-2022-39197 is a cross-site scripting vulnerability in the Teamserver component of Fortra Cobalt Strike. An attacker who can supply a malformed username in Beacon configuration data can cause the Teamserver to execute attacker-controlled code. Because Cobalt Strike Teamservers are typically used as command-and-control infrastructure, successful exploitation can give an adversary control over the server and any Beacons it manages. Confirm all version and configuration details against the vendor advisory before acting.

Defenders who operate or monitor Cobalt Strike instances should treat this as a high-priority issue for any exposed or poorly segmented Teamserver. The weakness combines improper input validation with XSS, allowing remote code execution once the malicious configuration is processed.

How it works

The vulnerability is classified under CWE-20 (Improper Input Validation) and CWE-79 (Cross-Site Scripting). Cobalt Strike Teamserver accepts Beacon configuration data that includes a username field. When that field contains specially crafted content, the Teamserver fails to sanitize it properly. The resulting XSS condition can be leveraged to execute code in the context of the Teamserver process.

An attacker who can influence Beacon configuration—whether through a compromised Beacon, a malicious operator, or another injection path—can set the malformed username. Once the Teamserver processes the configuration, the injected script or payload runs with the privileges of the Teamserver. Public detail on the exact payload format is limited; treat any untrusted Beacon configuration as potentially hostile and confirm the precise attack surface in the vendor advisory.

Am I affected? How to find it in your systems

Cobalt Strike Teamservers are commonly deployed on Windows or Linux hosts used by red teams, security service providers, or threat actors. Inventory every system that runs Cobalt Strike software, including development, staging, and production instances. Check process lists, listening ports associated with Cobalt Strike, and configuration files or license data that identify the product.

Because exact affected versions are not listed here, compare your installed build against the vendor advisory. Also inspect any third-party or customized Cobalt Strike deployments that may still contain the vulnerable Teamserver code.

How to remediate

Apply the vendor-supplied update for Cobalt Strike as directed by Fortra. CISA requires that organizations apply updates per the vendor instructions. After patching, restart the Teamserver and verify that the new build is running.

Document the patch date and verify that no residual vulnerable instances remain in the environment.

If you can't patch immediately

Until the vendor update can be installed, reduce exposure with compensating controls. Isolate every Teamserver behind network segmentation so that only authorized operator workstations and expected Beacon networks can reach it. Disable or tightly control any feature that allows remote configuration of Beacon usernames if the product permits it.

These measures lower risk but do not eliminate it; schedule the official patch as soon as possible.

If your data may have been exposed

Actively exploited vulnerabilities can lead to full compromise of the Teamserver and subsequent access to Beacon-connected systems or stored operational data. If you suspect exploitation, isolate the host, preserve logs and memory images, and begin incident response. Review operator accounts, Beacon inventories, and any sensitive data the Teamserver may have held. You can also run a free exposure scan of your email addresses to check whether credentials or other personal data appear in known breach collections.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedFortra · Cobalt Strike
WeaknessCWE-20
Added to CISA KEVMar 30, 2023
Federal patch deadlineApr 20, 2023
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities