Description
Kitty is a cross-platform GPU based terminal. Prior to 0.48.2, the @kitty-echo and @kitty-ssh DCS handlers in kitty/window.py write unauthenticated data to the child shell's stdin, where handle_remote_echo accepts printable shell command characters and handle_remote_ssh calls get_ssh_data in kittens/ssh/utils.py, which emits a newline; chaining the handlers can execute attacker-controlled commands when a user displays untrusted terminal data. This issue is fixed in version 0.48.2.
Published: 2026-08-10
Score: 7.3 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw allows an attacker to inject arbitrary shell commands into the child shell’s input by sending a chain of @kitty-echo and @kitty-ssh DCS escape sequences. Because the handlers accept printable characters or a newline without authentication, a malicious terminal output can trigger execution of attacker‑controlled code. This gives the attacker the same privileges as the terminal process, potentially allowing them to read, modify, or delete files, install malware, or disrupt services. The weakness is rooted in command injection (CWE‑77), improper privilege handling (CWE‑150), and unsanitized terminal input (CWE‑93).

Affected Systems

The vulnerability is present in the Kitty terminal emulator written by Kovid Goyal. Any installation of kitty prior to version 0.48.2 on Linux, macOS, or Windows is vulnerable, regardless of the host operating system. The issue is tied specifically to the @kitty-echo and @kitty-ssh handlers in the window module.

Risk and Exploitability

The CVSS score of 7.3 reflects a high severity rating. No EPSS score is available, so the exact likelihood of exploitation remains unknown, but the flaw is not listed in the CISA KEV catalog. Attackers can trigger the injection by crafting terminal output that a user will render; this means unattended terminals or shared session setups can be targeted. Since the injection is performed via an unauthenticated channel, the risk is amplified when trust boundaries around terminal output are insufficient.

Generated by OpenCVE AI on August 10, 2026 at 23:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Kitty to version 0.48.2 or newer, which resolves the command‑injection flaw (CWE‑77), the improper privilege handling (CWE‑150), and the unsanitized input issue (CWE‑93).
  • Edit the kitty configuration to disable the @kitty-echo and @kitty-ssh DCS handlers, removing the vulnerable entry points and mitigating the command‑injection path (CWE‑77).
  • Limit terminal access to trusted users and enforce strict session isolation so that only authenticated, authorized users can render untrusted terminal data, reducing the risk of accidental privilege escalation (CWE‑150).

Generated by OpenCVE AI on August 10, 2026 at 23:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
Description Kitty is a cross-platform GPU based terminal. Prior to 0.48.2, the @kitty-echo and @kitty-ssh DCS handlers in kitty/window.py write unauthenticated data to the child shell's stdin, where handle_remote_echo accepts printable shell command characters and handle_remote_ssh calls get_ssh_data in kittens/ssh/utils.py, which emits a newline; chaining the handlers can execute attacker-controlled commands when a user displays untrusted terminal data. This issue is fixed in version 0.48.2.
Title Kitty: Command injection into the child shell via chained @kitty-echo + @kitty-ssh DCS escape sequences
Weaknesses CWE-150
CWE-77
CWE-93
References
Metrics cvssV4_0

{'score': 7.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-10T21:07:29.557Z

Reserved: 2026-08-10T17:57:26.143Z

Link: CVE-2026-72913

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T23:30:07Z

Weaknesses
  • CWE-150

    Improper Neutralization of Escape, Meta, or Control Sequences

  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')