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: < 1% Very Low
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, CWE‑78), 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. The EPSS score of 0.00146 indicates the likelihood of exploitation is low but not zero, and the flaw is not listed in the CISA KEV catalog. Attackers can trigger the injection by crafting terminal output that a user will render; it is likely that unattended terminals or shared session setups could 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 13, 2026 at 14:53 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, CWE‑78), 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 13, 2026 at 14:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-78
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

threat_severity

Important


Tue, 11 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 11 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
First Time appeared Kovidgoyal
Kovidgoyal kitty
Vendors & Products Kovidgoyal
Kovidgoyal kitty

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

Kovidgoyal Kitty
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-11T15:59:44.886Z

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

Link: CVE-2026-72913

cve-icon Vulnrichment

Updated: 2026-08-11T15:57:43.820Z

cve-icon NVD

Status : Received

Published: 2026-08-10T21:17:26.297

Modified: 2026-08-11T16:17:37.477

Link: CVE-2026-72913

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-10T21:07:29Z

Links: CVE-2026-72913 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T15:00:04Z

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-78

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

  • CWE-93

    Improper Neutralization of CRLF Sequences ('CRLF Injection')