Skip to main content

Kitty terminal CVE-2026-42851

| EUVDEUVD-2026-36555 HIGH
Code Injection (CWE-94)
2026-06-12 security-advisories@github.com
7.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Stage malicious bytes in file, log, or SSH output
  2. Delivery
    Victim renders content in kitty < 0.47.0 (cat/less/SSH/TUI)
  3. Exploit
    Kitty parses crafted terminal sequence
  4. Execution
    Embedded Python evaluated in kitty process
  5. Persist
    Code runs with user privileges
  6. Impact
    Exfiltrate keys, pivot to other hosts

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

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 terminal emulator at a version below 0.47.0 and must cause attacker-controlled bytes to be written to a kitty window - this includes any of: an SSH session to a compromised remote host, cat/less/tail of an attacker-influenced file or log, an email or chat message body rendered in a TUI, or an issue/PR body viewed in a terminal client. No authentication to kitty itself, no shell integration, no remote-control permission, no clipboard interaction, and no editor interaction is required; the only limiting factor is that the user must actively view or otherwise cause the malicious bytes to be rendered (UI:R), and the attacker has no direct network path to the terminal - they need an existing channel that eventually prints to the TTY.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H scores 7.8 (High) and reflects local attack vector with required user interaction, but the practical risk is meaningfully higher than that vector suggests because 'user interaction' here is as trivial as viewing a file, reading an email, or letting an SSH session print output - actions users perform constantly without expecting code execution. Scope is marked Unchanged, yet the attacker gains full Python execution as the user, which in practice equates to full account compromise including access to SSH keys, browser profiles, and any reachable network resources. EPSS and KEV data were not provided in the input, and no public exploit was identified at time of analysis; this is not currently a CISA KEV entry. The vendor advisory (GHSA-w98g-hpvr-r332) confirms the issue and the fix, so this should be treated as a priority patch for any developer or sysadmin host running kitty, even though raw EPSS/KEV signals are absent.

Exploit ScenarioDerived

An attacker hosts a file (release note, log, README, email body) containing crafted terminal escape sequences and waits for a victim using kitty < 0.47.0 to render it - for example by running cat payload.txt, less message.eml, viewing a GitHub issue in a TUI, or tailing a log shipped from an attacker-controlled service. The moment the bytes reach the kitty window, kitty interprets them and executes the embedded Python with the user's privileges, giving the attacker a shell-equivalent foothold on the developer workstation with no prompt or warning. No public exploit identified at time of analysis, though the advisory description makes the trigger surface clear enough that a PoC is likely to follow.

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

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

Alert me

AnalysisAIv1 – Jun 12, 2026

Remote code execution in Kitty terminal emulator versions prior to 0.47.0 allows any process or remote peer that can write bytes to the terminal - including SSH sessions, file viewers like cat or less, log tailers, and TUI applications - to execute attacker-supplied Python code inside the running kitty process with full user privileges. Exploitation requires no approval prompt, no shell integration, no clipboard interaction, and no editor involvement, making any rendered untrusted content a viable injection vector. No public exploit identified at time of analysis, but the trivial trigger conditions and broad attack surface make this a high-priority patch.

RemediationAI

Vendor-released patch: upgrade kitty to version 0.47.0 or later, which fully fixes the issue per the vendor advisory at https://github.com/kovidgoyal/kitty/security/advisories/GHSA-w98g-hpvr-r332. Until the upgrade can be deployed, avoid using kitty to view untrusted byte streams: do not cat, less, or tail untrusted files, downloaded artifacts, or remote logs in a kitty window, and prefer a hardened pager or strip control sequences (for example pipe through cat -v or col -b) when inspecting attacker-influenced content; be aware these workarounds break legitimate color/escape handling and are easy to forget in interactive use, so they are stopgaps rather than substitutes for patching. For SSH from untrusted hosts, consider routing through a different terminal emulator until 0.47.0 is rolled out.

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 cross-platform, GPU-accelerated terminal emulator written largely in Python with a C rendering core. Like other modern terminals it interprets a wide range of escape sequences and control codes embedded in the byte stream printed to the TTY; the vulnerability is a CWE-94 (Improper Control of Generation of Code, 'Code Injection') flaw where one of these terminal protocol features can be coerced into evaluating arbitrary Python in the kitty process itself rather than merely altering display state. Because the injection happens at the terminal-output layer, anything that ultimately reaches stdout/stderr of a kitty window - SSH from a remote host, cat of a downloaded file, less rendering an email body, a TUI rendering an issue description, a log line - becomes a delivery channel. The affected component is Kitty itself (vendor kovidgoyal/kitty); no CPE strings were supplied with the advisory.

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.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Bytes must reach a local kitty TTY (AV:L) and the user must render them (UI:R); no auth or privileges needed (PR:N), and arbitrary Python as the user yields full C/I/A impact.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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, a program able to write bytes to a kitty terminal - a remote SSH peer, a downloaded file viewed with cat, a log line, an email body rendered in less, an issue body in a TUI, etc. - can cause kitty to execute attacker-supplied Python inside the running kitty process, with the user's full privileges. There is no approval prompt, no remote-control permission requirement, no shell-integration interaction, no clipboard touch, and no editor interaction. Version 0.47.0 fixes the issue.

Executive ViewAI

Why It Matters

Kitty terminal emulator versions prior to 0.47.0 contain a critical vulnerability that allows unauthorized code execution with full user privileges when viewing untrusted content-including remote logs, SSH sessions, and application output. Development and operations teams using affected versions face risk of workstation compromise during routine work activities. The broad attack surface and lack of a currently available patch create urgent need for interim protective measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Use alternative terminal emulators for viewing untrusted content; (2) Restrict or monitor SSH access to systems running affected versions; (3) Disable TUI application execution in Kitty; (4) Establish monitoring for patch release of version 0.47.0. No public exploit identified at time of analysis, but given the trivial attack surface, patch application should be prioritized immediately upon release.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% 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.0%
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-42850 HIGH
7.4 Jun 12

Command injection in Kitty cross-platform GPU terminal emulator versions prior to 0.47.0 allows remote attackers to exec

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