Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEmbed escape sequence in file/archive-member name
-
DeliveryDeliver repo or archive to victim
-
ExploitVictim highlights entry in choose-files preview
-
ExecutionRaw OSC 52 overwrites victim clipboard
-
ImpactVictim pastes and runs attacker command
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Escape character neutralization
|
| Exploitation Conditions | Exploitation requires the victim to use kitty's choose-files kitten (e.g. 'kitten choose-files') and to highlight an attacker-controlled entry whose file name - or zip/tar/rar member name - contains terminal escape sequences; the kitten (preview.go write_file_metadata and archive.go displayFilename paths in 0.50.0) writes these names raw to the terminal on highlight, with no extraction or confirmation prompt. For the OSC 52 clipboard-overwrite effect, kitty's clipboard_control must permit write-clipboard, which the default configuration allows. Key limiting factors that reduce real-world risk: the vector is local (the victim must obtain and browse the malicious files locally, e.g. a cloned repo, downloaded/extracted archive, or shared drive); it requires passive user interaction (navigating to and highlighting the entry); and the most damaging outcome - command execution from clipboard poisoning - additionally requires the victim to later paste the clipboard contents. The other effects (OSC 8 links, title change, screen clear, in-picker UI spoofing) are deception-only and do not by themselves execute code. |
| Impact | This is a genuine but modest-severity issue, not a top-tier emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N) and base score of 4.8 point to a low-to-medium integrity-only flaw: no confidentiality or availability impact, a local vector, and required (passive) user interaction. No EPSS score or CISA KEV entry is present in the input, and the vuln.today Decision label is 'this_month' (not act_now/emergency), all of which align with a lower-urgency triage rather than active mass exploitation. The one signal that raises attention is that a working proof-of-concept is included in the GHSA advisory (recorded OSC 52 writes from both a crafted filename and a zip member name), so exploitability is demonstrated, not theoretical. However, impact is bounded: the primary consequence is clipboard poisoning via OSC 52, which only becomes dangerous if the victim later pastes the injected text - the reporter themselves rates it medium-to-low for this reason. The remaining effects (OSC 8 link injection, title change, screen/UI spoofing inside the picker) are deception/nuisance rather than direct code execution. One conflict worth flagging: the CVE description states affected range 0.43.0 before 0.51.0, while the vendor GHSA advisory specifically identifies 0.50.0 and master as the tested/affected code - the applicability to versions back to 0.43.0 is asserted by the CVE but not independently demonstrated in the advisory. Overall: a real priority to patch for kitty users who use the choose-files kitten on untrusted directories/archives, but not a drop-everything incident. |
| Exploit ScenarioDerived | An attacker ships a git repository, downloadable archive (zip/tar/rar), or shared folder containing a file - or archive member - whose name embeds terminal escape sequences such as OSC 52. When the victim browses with kitty's choose-files kitten and merely highlights the entry, the kitten writes the raw unsanitized name to the terminal, silently overwriting the clipboard; a subsequent paste by the victim runs the attacker's injected command. A working PoC is included in the vendor advisory, demonstrating OSC 52 clipboard writes from both a filename and a zip member name. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 22, 2026
Kitty's choose-files kitten writes attacker-controlled file names and archive member names to the terminal without sanitization, so a name containing escape sequences is emitted as soon as the victim highlights that entry in the preview pane - no extraction or confirmation required. Versions 0.43.0 through 0.50.0 are affected, and the practical outcomes are clipboard overwrite via OSC 52 (which can later lead to command execution if the victim pastes), OSC 8 hyperlink injection, window title changes, screen clearing, and UI spoofing inside the picker. A public proof-of-concept accompanying the upstream advisory reproduces the raw OSC 52 emission on a pty; it is not verified as working exploit code against a full kitty session, and there is no indication of active exploitation. Severity is modest: the vector is local, requires the victim to browse an attacker-supplied directory or archive, and the most damaging effect needs a subsequent paste.
RemediationAI
Vendor-released patch: upgrade to kitty 0.51.0 (https://github.com/kovidgoyal/kitty/releases/tag/v0.51.0), which contains commit 4fa6709910d289ef5b8771eefeaac876343bb083 and applies sanitize_name to file names, extensions, archive member names, calibre metadata, footer text and previewer output, plus keep_only_sgr for the cmd previewer and sanitized error strings. Per the vuln.today priority label this is a this_month item rather than an emergency. Where upgrading must be staged, the OSC 52 clipboard-overwrite vector can be removed by setting clipboard_control to disallow write-clipboard, at the cost of breaking legitimate terminal clipboard writes for all applications, and users should avoid running the choose-files kitten against untrusted directories, cloned repositories, downloaded archives or shared drives until patched. The other effects (OSC 8 links, title changes, screen clearing, in-picker spoofing) remain present under that setting, so disabling the clipboard path is a partial mitigation only; the upstream advisory treats sanitization, i.e. the 0.51.0 release, as the fix.
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
The flaw is terminal escape-sequence injection (CWE-150, also tracked as CWE-74) in kitty's Go-based choose-files kitten. Two rendering paths print untrusted names verbatim: preview.go's write_file_metadata prints filepath.Base(abspath) raw (and NewFileMetadataPreview/NewFileMetadataPreviewWithError use an unsanitized filepath.Ext for the title), while archive.go's displayFilename returns the member name unchanged whenever it is valid UTF-8, and the render path appends non-NonUTF8 zip entry names directly to the trailers that MessagePreview.Render flushes to the terminal via QueueWriteString. Because the bytes go straight to the tty, any CSI/OSC sequence embedded in a file or zip/tar/rar member name is interpreted by kitty itself; OSC 52 sets the clipboard, OSC 8 forges clickable links, and other sequences alter the title, clear the screen or paint convincing fake UI inside the picker. Kitty's default clipboard_control permits write-clipboard, so the OSC 52 payload is honored without extra configuration. Notably, neighbouring code in the same kitten already sanitizes the results list, directory listing trailers and symlink targets, so these are missing guards rather than a design gap. The upstream commit 4fa6709910d289ef5b8771eefeaac876343bb083 routes names, extensions and archive members through sanitize_name, restricts previewer output with keep_only_sgr, and also sanitizes calibre ebook metadata and previewer error text.
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:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Local vector since attacker-controlled names must be browsed in the local choose-files kitten, user interaction required to highlight the entry, and only low integrity impact (clipboard/display tampering) with no confidentiality or availability loss.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Kitty 0.43.0 before 0.51.0 contains a terminal escape sequence injection vulnerability that allows attackers to emit escape sequences by crafting malicious file or archive member names. When a victim highlights such an entry in the choose-files kitten preview panel, unsanitized names are written raw, enabling OSC 52 clipboard overwrites, OSC 8 links, window title changes, or screen spoofing.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
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
Command injection in Kitty cross-platform GPU terminal emulator versions prior to 0.47.0 allows remote attackers to exec
EUVD-2026-132840
GHSA-v4xv-86fx-r4r4
NVD
CVE.org
EPSS
Exploit-DB