CVE-2022-45063 Command injection in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via malicious OSC 50 responses in xterm when font operations are enabled, requiring user interaction in Zsh.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-45063?

CVE-2022-45063 is a critical command injection vulnerability in Fedoraproject Fedora, published on 10 Nov 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-77

Which versions are affected by CVE-2022-45063?

It affects 2 products.

Linux distribution packages (36)
xterm AlmaLinux:9All versions366-10.el9_6
xterm-resize AlmaLinux:9All versions366-10.el9_6
xterm Red Hat:enterprise_linux:9::appstreamAll versions0:366-10.el9_6
xterm-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:366-10.el9_6
xterm-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:366-10.el9_6
xterm-resize Red Hat:enterprise_linux:9::appstreamAll versions0:366-10.el9_6
xterm-resize-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:366-10.el9_6
xterm Rocky Linux:9All versions0:366-10.el9_6
xterm SUSE:Enterprise Storage 6All versions330-150000.4.6.1
xterm SUSE:Enterprise Storage 7All versions330-150200.11.9.1
xterm SUSE:Enterprise Storage 7.1All versions330-150200.11.9.1
xterm SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions330-150000.4.6.1
xterm SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions330-150200.11.9.1
xterm SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions330-150200.11.9.1
xterm SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Module for Basesystem 15 SP4All versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Real Time 15 SP3All versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Server 12 SP2-BCLAll versions308-5.9.1
xterm SUSE:Linux Enterprise Server 12 SP4-ESPOSAll versions308-5.9.1
xterm SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions308-5.9.1
xterm SUSE:Linux Enterprise Server 12 SP5All versions308-5.9.1
xterm SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions330-150000.4.6.1
xterm SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions308-5.9.1
xterm SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions308-5.9.1
xterm SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions330-150000.4.6.1
xterm SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions330-150200.11.9.1
xterm SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions330-150200.11.9.1
xterm SUSE:Manager Proxy 4.2All versions330-150200.11.9.1
xterm SUSE:Manager Retail Branch Server 4.2All versions330-150200.11.9.1
xterm SUSE:Manager Server 4.2All versions330-150200.11.9.1
xterm SUSE:OpenStack Cloud 9All versions308-5.9.1
xterm SUSE:OpenStack Cloud Crowbar 9All versions308-5.9.1
xterm openSUSE:Leap 15.4All versions330-150200.11.9.1
xterm openSUSE:TumbleweedAll versions375-2.1

Products include Fedoraproject Fedora, Invisible-Island Xterm.

How do I fix CVE-2022-45063?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2022-45063 being exploited?

There is no known exploitation of CVE-2022-45063 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as ALSA-2025:7427, AZL-11429, CLSA-2022-1669236294, CLSA-2022-1669237302, CLSA-2022-1669238963, CLSA-2022-1669239895 and 16 more.

Is CVE-2022-45063 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free