cbcvebase.
CVE-2022-45063
published 2022-11-10

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…

PriorityP259critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
4.95%
91.1th percentile
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

9 ranges
VendorProductVersion rangeFixed in
debianxterm< xterm 375-1 (bookworm)xterm 375-1 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
invisible-islandxterm< 375375
invisible-islandxterm>= 0 < 375-1375-1
invisible-islandxterm>= 0 < 375-1375-1
invisible-islandxterm>= 0 < 375-1375-1
msrccbl2_xterm_380-1_on_cbl_mariner_2.0

Detection & IOCsextracted from sources · hover to see the quote

  • Detect OSC 50 font query/response sequences in terminal I/O; a malicious OSC 50 response containing Ctrl-g (0x07) can trigger command execution in Zsh vi line-editing mode
  • Flag xterm versions below 375 as vulnerable; the fix was introduced in xterm 375
  • Check whether allowFontOps and allowWindowOps xterm resources are set to false; if either is true the attack surface is elevated
  • ·font ops (allowFontOps) are disabled by default in xterm configurations shipped by some Linux distributions, which mitigates the vulnerability without patching
  • ·Red Hat marks this moderate because allowWindowOps and allowFontOps are false by default in RHEL xterm packages, reducing the attack surface to local/non-remote exploitation

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

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.