Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim opens netcat listener in Kitty
-
DeliveryAttacker connects and sends crafted escape code
-
ExploitKitty emits unescaped error with CRLF
-
ExecutionShell reads injected line from TTY
-
ImpactShell executes attacker command as victim user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Command injection prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Victim must be running Kitty < 0.47.0 AND must have an interactive shell prompt active in that terminal AND must be relaying attacker-controlled bytes into the terminal's stdout via a tool such as netcat, socat, or any similar listener/connector that prints raw network input to the TTY without sanitization. Exploitation is limited by: (1) the user-interaction requirement encoded as UI:A in CVSS 4.0 - the victim must deliberately establish the network read, (2) the attack-requirement flag AT:P indicating a specific precondition beyond a default configuration, (3) high attack complexity (AC:H) because the attacker needs an open channel to inject bytes into the victim's terminal in the first place, and (4) the command runs only with the victim's shell privileges, not elevated. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N) correctly captures the unusual risk profile: network reach, but high complexity, a required attack precondition, and active user involvement (the victim must have already piped untrusted network data - e.g., via netcat - into their Kitty session). There is no EPSS score, no CISA KEV listing, and no public POC referenced beyond the GitHub Security Advisory, so this is best treated as a credible but narrow attack surface rather than a mass-exploitation threat. The high confidentiality/integrity impact is real once the precondition is met (arbitrary command execution as the victim's user), but the chain of required user behavior makes opportunistic exploitation unlikely; prioritize patching on multi-user, developer, and CTF/red-team workstations where pasting raw network output into a terminal is common. |
| Exploit ScenarioDerived | A victim on a CTF or pentest workstation runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 12, 2026
Command injection in Kitty cross-platform GPU terminal emulator versions prior to 0.47.0 allows remote attackers to execute arbitrary shell commands on a victim's host by sending a crafted escape sequence over an attacker-controlled network connection. The terminal echoes its own error message - including attacker-controlled bytes - back to the shell with CRLF, causing the shell to execute the injected command. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade to Kitty 0.47.0 or later, per the GitHub Security Advisory GHSA-p64q-59hq-5q65 (https://github.com/kovidgoyal/kitty/security/advisories/GHSA-p64q-59hq-5q65). Note the CVE description's reference to '04.7.0' is a typo for 0.47.0. Until upgrade is possible, avoid piping untrusted network data directly into a Kitty session - pipe through cat -v, less -R with control-character filtering, or tr -d '\r' to strip carriage returns before they reach the terminal, accepting that this breaks legitimate ANSI rendering. Disabling shell auto-execution on CR is not realistic, so the most defensible interim control is to run untrusted netcat/socat sessions inside a disposable container or a less feature-rich terminal (e.g., tmux inside a plain xterm) where Kitty's escape-code parser is not in the loop.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Kitty is a GPU-accelerated terminal emulator written primarily in Python and C, used widely on Linux and macOS. The flaw is a textbook CWE-77 (Improper Neutralization of Special Elements used in a Command) issue in Kitty's escape-code handler: when the terminal receives a specially crafted escape code it cannot process, it emits its own error response back to the TTY without sanitizing carriage-return/line-feed sequences. Because the error string is written to the same TTY the user's shell reads from, the embedded CRLF terminates the in-progress shell input line and submits whatever followed it as a new command, effectively turning the terminal's own error path into a command-injection sink.
Know when Kitty gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network reach via attacker bytes, but high complexity and required user action (victim must run netcat into Kitty); no auth needed; full RCE as user gives C:H/I:H, no availability impact stated.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, it is possible to inject commands within the subshell through kitty error. A special escape code will make kitty return an error, this error is not escaped and will be correctly echoed back to the terminal with CRLF, as such it will be run by the shell in use. To exploit this bug, the victim must use a netcat or a similar program to connect to the attacker, or else listening for someone to connect. Once this condition is set, an attacker could pwn the computer of the victim using a special kitty's escape code that will run a command in the shell in use. Version 04.7.0 fixes the issue.
Executive ViewAI
Kitty terminal emulator versions prior to 0.47.0 contain a remote command injection vulnerability allowing attackers to execute arbitrary commands through malicious escape sequences sent over network connections. Employees using Kitty to access external systems face direct risk of workstation compromise and potential data exfiltration. The lack of an available patch creates urgent pressure to implement compensating controls immediately.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Kitty usage to connections with trusted internal systems only; (2) Disable Kitty access for external or third-party network connections; (3) Sandbox or containerize Kitty instances to limit lateral movement if compromised; (4) Enable command and process auditing to detect suspicious terminal activity and injection attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
Stack-based buffer overflow in the SCP command-line utility in PuTTY before 0.67 and KiTTY 0.66.6.3 and earlier allows r
The Graphics Protocol feature in graphics.c in kitty before 0.19.3 allows remote attackers to execute arbitrary code bec
KiTTY versions 0.76.1.13 and before is vulnerable to command injection via the filename variable, occurs due to insuffic
KiTTY versions 0.76.1.13 and before is vulnerable to a stack-based buffer overflow via the username, occurs due to insuf
KiTTY versions 0.76.1.13 and before is vulnerable to a stack-based buffer overflow via the hostname, occurs due to insuf
In Kitty before 0.26.2, insufficient validation in the desktop notification escape sequence can lead to arbitrary code e
Heap memory corruption in Kitty cross-platform GPU terminal emulator (versions 0.46.2 and below) allows remote attackers
Heap buffer overflow in Kitty terminal versions 0.46.2 and below allows any process able to write to the terminal's stan
open_actions.py in kitty before 0.41.0 does not ask for user confirmation before running a local executable file that ma
Remote code execution in Kitty terminal emulator versions prior to 0.47.0 allows any process or remote peer that can wri
Code injection in Kitty terminal emulator versions prior to 0.47.3 allows attacker-controlled bytes - including newline
EUVD-2026-36553
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB