CVE-2022-45063
Critical · 9.8CVSS
9.8
EPSS
5.4%
Published
Nov 10, 2022
CISA due date
—
Cloudanix analysis
A terminal program used on many computers can be tricked into running attacker commands when it receives specially formatted text, potentially giving outsiders full control of the machine.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Allows arbitrary command execution by crafting OSC 50 font responses containing control characters such as Ctrl-G that are interpreted as commands when echoed into Zsh's vi line-editing mode.
Why it matters to the business
Attackers can achieve full remote code execution on systems running vulnerable terminal emulators, enabling data theft, persistence, or further lateral movement; the issue has been public for years with limited observed exploitation.
How an attack unfolds
An attacker supplies malicious input that triggers an OSC 50 font operation response containing embedded control characters; when the response is processed and displayed inside Zsh running in vi mode, the control characters cause immediate command execution on the victim's host.
How to fix it
Upgrade xterm to version 375 or later on all affected systems; where immediate upgrade is not possible, disable font operations via the allowFontOps resource or equivalent configuration.
How to confirm the fix worked
Verify installed xterm version is 375 or newer; test that OSC 50 queries no longer produce responses containing raw control characters under Zsh vi mode.
Typical attack path
- Identify a target process or session using an affected xterm version
- Send crafted input or escape sequences that provoke an OSC 50 font query response
- Embed control characters (e.g., Ctrl-G) inside the response payload
- Trigger display of the response within Zsh vi-editing mode to execute the injected commands
- Establish interactive access or run follow-on payloads
How to detect it
Review terminal session logs, shell history, and process creation events for unexpected command execution immediately following font-related escape sequences or OSC 50 responses; correlate with Zsh vi-mode usage.
What your security team should do
- Prioritize upgrade of xterm packages across all Linux distributions and developer workstations
- Audit terminal emulator configurations to ensure font operations remain disabled by default
- Monitor for new terminal-related CVEs and include terminal emulators in patch management SLAs
The record
xterm before 375 allows code execution via font ops, e.g., because an OSC 50 response may have Ctrl-g and therefore lead to command execution within the vi line-editing mode of Zsh. NOTE: font ops are not allowed in the xterm default configurations of some Linux distributions.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:9 | xterm | 0 | 366-10.el9_6 |
| AlmaLinux:9 | xterm-resize | 0 | 366-10.el9_6 |
| Debian:11 | xterm | 0 | No fix |
| Debian:12 | xterm | 0 | 375-1 |
| Debian:13 | xterm | 0 | 375-1 |
| Debian:14 | xterm | 0 | 375-1 |
| Mageia:8 | xterm | 0 | 376-1.mga8 |
| SUSE:Enterprise Storage 6 | xterm | 0 | 330-150000.4.6.1 |
| SUSE:Enterprise Storage 7 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Enterprise Storage 7.1 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | xterm | 0 | 330-150000.4.6.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP4 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Real Time 15 SP3 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server 12 SP4-ESPOS | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server 12 SP5 | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | xterm | 0 | 330-150000.4.6.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | xterm | 0 | 308-5.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | xterm | 0 | 330-150000.4.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Manager Proxy 4.2 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Manager Retail Branch Server 4.2 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:Manager Server 4.2 | xterm | 0 | 330-150200.11.9.1 |
| SUSE:OpenStack Cloud 9 | xterm | 0 | 308-5.9.1 |
| SUSE:OpenStack Cloud Crowbar 9 | xterm | 0 | 308-5.9.1 |
| Ubuntu:16.04:LTS | xterm | 0 | No fix |
| Ubuntu:18.04:LTS | xterm | 0 | No fix |
| Ubuntu:20.04:LTS | xterm | 0 | No fix |
| Ubuntu:22.04:LTS | xterm | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | xterm | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | xterm | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | xterm | 0 | No fix |
| Ubuntu:Pro:22.04:LTS | xterm | 0 | No fix |
| openSUSE:Leap 15.4 | xterm | 0 | 330-150200.11.9.1 |
| openSUSE:Tumbleweed | xterm | 0 | 375-2.1 |
Related vulnerabilities
- CVE-2022-24130 xterm through Patch 370, when Sixel support is enabled, allows attackers to trigger a… Also affects xterm
- CVE-2026-114575 A flaw has been found in TOTOLINK A950RG 4.1.2cu.5268_B20221104. CWE-77
- CVE-2026-112942 launch-editor allows users to open files with line numbers in editor from Node.js. CWE-77
- CVE-2026-55453 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-77
- CVE-2026-102827 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-102826 simple-git, an interface for running git commands in any node.js application, enables… CWE-77
- CVE-2026-79945 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77
- CVE-2026-79741 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-77