Skip to main content

Kitty terminal CVE-2026-42850

| EUVDEUVD-2026-36553 HIGH
Command Injection (CWE-77)
2026-06-12 security-advisories@github.com
7.4
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Victim opens netcat listener in Kitty
  2. Delivery
    Attacker connects and sends crafted escape code
  3. Exploit
    Kitty emits unescaped error with CRLF
  4. Execution
    Shell reads injected line from TTY
  5. Impact
    Shell 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 nc -lvnp 4444 (or connects outbound to an attacker) inside Kitty and receives attacker-controlled bytes. The attacker sends a crafted escape sequence Kitty cannot parse; Kitty emits an error response containing the attacker's payload plus CRLF back to the TTY, and the user's shell - reading from that same TTY - executes the injected command as the victim user. No public POC is referenced beyond the vendor advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

kitty < 0.47.0

Affected Packages

euvd kitty fix: 0.47.0

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

Vendor (github) PRIMARY 7.4 HIGH
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
vuln.today AI 6.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 12, 2026 - 21:01 EUVD

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 82% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Kitty

View all
CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-2563 CRITICAL POC
9.8 Apr 07

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

CVE-2020-35605 CRITICAL POC
9.8 Dec 21

The Graphics Protocol feature in graphics.c in kitty before 0.19.3 allows remote attackers to execute arbitrary code bec

CVE-2024-23749 HIGH POC
7.8 Feb 09

KiTTY versions 0.76.1.13 and before is vulnerable to command injection via the filename variable, occurs due to insuffic

CVE-2024-25004 HIGH POC
7.8 Feb 09

KiTTY versions 0.76.1.13 and before is vulnerable to a stack-based buffer overflow via the username, occurs due to insuf

CVE-2024-25003 HIGH POC
7.8 Feb 09

KiTTY versions 0.76.1.13 and before is vulnerable to a stack-based buffer overflow via the hostname, occurs due to insuf

CVE-2022-41322 HIGH POC
7.8 Sep 23

In Kitty before 0.26.2, insufficient validation in the desktop notification escape sequence can lead to arbitrary code e

CVE-2026-33642 CRITICAL
9.8 May 19

Heap memory corruption in Kitty cross-platform GPU terminal emulator (versions 0.46.2 and below) allows remote attackers

CVE-2026-33633 HIGH
8.8 May 19

Heap buffer overflow in Kitty terminal versions 0.46.2 and below allows any process able to write to the terminal's stan

CVE-2025-43929 MEDIUM POC
4.1 Apr 20

open_actions.py in kitty before 0.41.0 does not ask for user confirmation before running a local executable file that ma

CVE-2026-42851 HIGH
7.8 Jun 12

Remote code execution in Kitty terminal emulator versions prior to 0.47.0 allows any process or remote peer that can wri

CVE-2026-54057 HIGH
7.3 Jun 12

Code injection in Kitty terminal emulator versions prior to 0.47.3 allows attacker-controlled bytes - including newline

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy