# CVE-2022-45063: Command injection in n/a

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

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Nov 2022
- **Updated:** 8 Apr 2026
- **Also known as:** ALSA-2025:7427, AZL-11429, CLSA-2022-1669236294, CLSA-2022-1669237302, CLSA-2022-1669238963, CLSA-2022-1669239895, CLSA-2022-1669242003, CLSA-2026-1777030519, DEBIAN-CVE-2022-45063, GHSA-3cch-wj7f-8g8x, MGASA-2022-0441, OESA-2024-2236, OESA-2024-2237, OESA-2024-2238, OESA-2024-2239, RHSA-2025:7427, RLSA-2025:7427, SUSE-SU-2023:0173-1, SUSE-SU-2023:0221-1, SUSE-SU-2023:0582-1, UBUNTU-CVE-2022-45063, openSUSE-SU-2024:12505-1

## 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 (Improper Neutralization of Special Elements used in a Command)

## Which versions are affected by CVE-2022-45063?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `xterm` | AlmaLinux:9 | All versions | 366-10.el9_6 |
| `xterm-resize` | AlmaLinux:9 | All versions | 366-10.el9_6 |
| `xterm` | Red Hat:enterprise_linux:9::appstream | All versions | 0:366-10.el9_6 |
| `xterm-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:366-10.el9_6 |
| `xterm-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:366-10.el9_6 |
| `xterm-resize` | Red Hat:enterprise_linux:9::appstream | All versions | 0:366-10.el9_6 |
| `xterm-resize-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:366-10.el9_6 |
| `xterm` | Rocky Linux:9 | All versions | 0:366-10.el9_6 |
| `xterm` | SUSE:Enterprise Storage 6 | All versions | 330-150000.4.6.1 |
| `xterm` | SUSE:Enterprise Storage 7 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Enterprise Storage 7.1 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 330-150000.4.6.1 |
| `xterm` | SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Module for Basesystem 15 SP4 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 12 SP4-ESPOS | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 330-150000.4.6.1 |
| `xterm` | SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 308-5.9.1 |
| `xterm` | SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 330-150000.4.6.1 |
| `xterm` | SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Manager Proxy 4.2 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Manager Retail Branch Server 4.2 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:Manager Server 4.2 | All versions | 330-150200.11.9.1 |
| `xterm` | SUSE:OpenStack Cloud 9 | All versions | 308-5.9.1 |
| `xterm` | SUSE:OpenStack Cloud Crowbar 9 | All versions | 308-5.9.1 |
| `xterm` | openSUSE:Leap 15.4 | All versions | 330-150200.11.9.1 |
| `xterm` | openSUSE:Tumbleweed | All versions | 375-2.1 |

Products: Fedoraproject Fedora, Invisible-Island Xterm.

## How do I fix CVE-2022-45063?

Upgrade to a fixed version.

## Is CVE-2022-45063 being exploited?

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

## Other vulnerabilities in Fedoraproject Fedora

- [CVE-2024-4577](https://insights.sbomify.com/CVE-2024-4577/): PHP-CGI OS Command Injection (critical 9.8, exploited in the wild)
- [CVE-2021-39226](https://insights.sbomify.com/CVE-2021-39226/): Grafana Authentication Bypass (critical 9.8, exploited in the wild)
- [CVE-2019-5544](https://insights.sbomify.com/CVE-2019-5544/): VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow (critical 9.8, exploited in the wild)
- [CVE-2024-4947](https://insights.sbomify.com/CVE-2024-4947/): Google Chromium V8 Type Confusion (critical 9.6, exploited in the wild)
- [CVE-2024-4671](https://insights.sbomify.com/CVE-2024-4671/): Google Chromium Visuals Use-After-Free (critical 9.6, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-45063 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2022-45063 in the wild and no public exploit code.

Affected product: Fedoraproject Fedora. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-45063/ (Markdown: https://insights.sbomify.com/CVE-2022-45063/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-45063
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-45063
- OSV: https://osv.dev/vulnerability/CVE-2022-45063

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-45063/
Summaries are generated and may contain mistakes; the official description above is the record.
