What’s Vulnerable › Vulnerabilities
CVE-2022-23465: SwiftTerm vulnerable to arbitrary command execution
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-12-02 · updated 2026-06-17
- Weakness: CWE-94
Description
SwiftTerm is a Xterm/VT100 Terminal emulator. Prior to commit a94e6b24d24ce9680ad79884992e1dff8e150a31, an attacker could modify the window title via a certain character escape sequence and then insert it back to the command line in the user's terminal, e.g. when the user views a file containing the malicious sequence, which could allow the attacker to execute arbitrary commands. Version a94e6b24d24ce9680ad79884992e1dff8e150a31 contains a patch for this issue. There are no known workarounds available.
Affected products
- migueldeicaza SwiftTerm: before 2022-12-02 — fixed in 2022-12-02
How to fix
Upgrade to a fixed version: migueldeicaza SwiftTerm 2022-12-02. Check the vendor advisory for mitigations.
References
- https://github.com/migueldeicaza/SwiftTerm/commit/a94e6b24d24ce9680ad79884992e1dff8e150a31
- https://github.com/migueldeicaza/SwiftTerm/security/advisories/GHSA-jq43-q8mx-r7mq
- https://github.com/migueldeicaza/SwiftTerm/commit/a94e6b24d24ce9680ad79884992e1dff8e150a31
- https://github.com/migueldeicaza/SwiftTerm/security/advisories/GHSA-jq43-q8mx-r7mq
Get alerted when CVE-2022-23465 or the next vulnerability affects your stack