CVE-2022-45063

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…

published November 10, 2022

CVSS
—
EPSS
5%
Percentile
92.7
In the wild
Unconfirmed
What it is

⚠️ A sneaky little flaw in xterm could let an attacker execute commands just by sending specially crafted font operations! 😲 Think of xterm like a restaurant's kitchen. If a waiter takes an order without checking the ingredients, they might accidentally add something dangerous to the dish — in this case, running rogue commands without the chef's permission! An attacker could exploit this to execute arbitrary commands within the vi line-editing mode of Zsh, potentially compromising user data or system integrity. While the issue is not actively exploited, the risks associated with unintended command execution are serious and warrant attention.

Put simply

Think of xterm like a restaurant's kitchen. If a waiter takes an order without checking the ingredients, they might accidentally add something dangerous to the dish — in this case, running rogue commands without the chef's permission! CVE-2022-45063 allows code execution in xterm versions before 375 via font operations that include control characters, like Ctrl-g, in OSC 50 responses. These operations, if mishandled, can lead to unexpected command execution within the terminal environment.

What to do

An attacker could exploit this to execute arbitrary commands within the vi line-editing mode of Zsh, potentially compromising user data or system integrity. While the issue is not actively exploited, the risks associated with unintended command execution are serious and warrant attention. To mitigate this vulnerability, update xterm to version 375 or later where the issue is addressed. Additionally, review your terminal configuration to ensure that font operations are properly restricted, and consider implementing security controls that validate input. You've got this! Follow these steps, and you'll tighten up your terminal security in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.05449 · 92.7th percentile
Published
2022-11-10T00:00Z
EPSS history
Timeline
  • 10 NOV 00:00Z
    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…
    cvelistv5