Skip to main content

Kitty terminal EUVDEUVD-2026-36578

| CVE-2026-54056 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-06-12 GitHub_M
7.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Host malicious remote drag source
  2. Delivery
    Victim drags payload into kitty
  3. Exploit
    Send text/uri-list with case-colliding entries
  4. Install
    Stage symlink to target file
  5. C2
    Second write follows symlink via openat without O_NOFOLLOW
  6. Execute
    Overwrite arbitrary user-writable file
  7. Impact
    Code execution on next shell login

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Requires the victim to be running Kitty 0.47.0 or 0.47.1 on a case-sensitive filesystem and to actively perform a drag-and-drop operation from an attacker-controlled remote source into a kitty window with 'kitten dnd' handling the drop. The attacker must control the source of a text/uri-list drag payload and be able to send two entries whose basenames collide only by case (to bypass de-duplication) plus the symlink-then-file ordering. Exploitation is limited by: mandatory user interaction (UI:R) - no purely remote trigger; non-exploitable on case-insensitive filesystems (default macOS APFS, Windows NTFS by default) because the duplicate-basename condition cannot be reached; confined to files writable by the local kitty user (no privilege escalation past that UID).

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:L yields 7.6 (High), with the scope change reflecting writes escaping the staging directory to arbitrary user-owned files. Real-world risk is meaningfully lower than the score suggests: UI:R requires the victim to perform a drag-and-drop into a kitty window from an attacker-controlled remote source, EPSS is 0.03% (9th percentile) indicating no observed exploitation interest, the CVE is not on CISA KEV, and no public PoC is referenced beyond the GHSA. The 'RCE' tag in the intelligence feed is misleading - the vector explicitly shows C:N and only I:H/A:L, so this is an arbitrary file overwrite/truncate primitive, not direct code execution, though chained file overwrites (e.g., of shell rc files) could escalate to code execution on next login. PR:L in the vector is consistent with the attacker needing a path to deliver the malicious drag source (e.g., a remote desktop/web context), but the description does not require attacker authentication to kitty itself - this is a slight tension worth verifying with the vendor advisory.

Exploit ScenarioDerived

A user drags a file from an attacker-controlled remote source (e.g., a hostile web page or remote desktop session) into a kitty terminal running 0.47.0/0.47.1. The malicious source sends a text/uri-list payload containing two same-basename entries that differ only in case - the first creates a symlink in the staging directory pointing to ~/.bashrc, and the second writes a regular file with the same basename, which openat() follows through the symlink and truncates/overwrites the victim's shell rc, yielding code execution on the next shell launch.

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

Arbitrary file write in Kitty terminal versions 0.47.0 and 0.47.1 allows a remote drag-and-drop source to overwrite files writable by the local kitty user via a TOCTOU symlink race in kitten dnd staging. The flaw stems from openat() calls lacking O_NOFOLLOW when handling duplicate remote basenames on case-sensitive filesystems, letting an attacker-staged symlink redirect writes outside the staging directory. No public exploit identified at time of analysis, and EPSS is very low (0.03%), though user interaction via drag-and-drop is the gating factor.

RemediationAI

Vendor-released patch: upgrade to Kitty 0.47.2, which adds the missing O_NOFOLLOW semantics to the dnd staging open path; see https://github.com/kovidgoyal/kitty/security/advisories/GHSA-r892-cv7q-fw8x for the fix commit and details. Until upgrade is possible, disable or avoid using 'kitten dnd' for remote drag-and-drop sources (do not drag content from untrusted remote desktops, browsers backed by untrusted origins, or RDP/VNC sessions into kitty windows), with the side effect of losing remote drag-and-drop convenience. As a defense-in-depth measure, run kitty under a user account whose writable file set excludes sensitive shell startup files and SSH config (e.g., by relocating dotfiles or tightening permissions), accepting the side effect of breaking workflows that legitimately rewrite those files.

Affected VersionsENISA

kitty 0.47.0, < 0.47.2

Affected Packages

euvd kitty_0_47_0 fix: 0.47.2

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 cross-platform terminal emulator (CPE cpe:2.3:a:kovidgoyal:kitty) whose 'kitten dnd' helper stages remote drag-and-drop payloads (text/uri-list MIME) in a temporary directory before final placement. The root cause is CWE-59 (Link Following): the vulnerable code in kittens/dnd/drop.go and tools/utils/file_at_fd.go calls utils.CreateAt() / openat(O_RDWR|O_CREAT|O_TRUNC) without the O_NOFOLLOW flag, so when two remote entries share a basename on case-sensitive filesystems they are not de-duplicated and the second write follows whatever symlink the first entry planted. Notably this is distinct from the earlier file-transfer symlink advisory - it reproduces on commit 4aa4a5c0567a92553a8c20a88a4352da637fca5d, after that prior O_NOFOLLOW fix was applied, indicating an incomplete remediation pattern across staging code paths.

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_M) PRIMARY HIGH
NVD 7.1 HIGH
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
vuln.today AI 6.9 MEDIUM

Network-delivered drag source with no kitty-side auth (PR:N); AC:H due to required case-collision race and case-sensitive FS; UI:R for the drag gesture; scope change with I:H/A:L file overwrite, no confidentiality loss.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorNVD

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

Lifecycle Timeline

2
CVSS changed
Jun 16, 2026 - 16:07 NVD
7.6 (HIGH) 7.1 (HIGH)
Patch available
Jun 12, 2026 - 22:01 EUVD

DescriptionNVD

Kitty is a cross-platform GPU based terminal. In versions 0.47.0 and 0.47.1, kitten dnd can allow a malicious remote drag-and-drop source to overwrite or truncate arbitrary files writable by the local kitty user. Remote text/uri-list drops are staged in a temporary directory, but on case-sensitive filesystems duplicate remote basenames are not de-duplicated. An attacker can first create a staged symlink and then send a same-name regular-file entry. The regular-file write uses utils.CreateAt() / openat(O_RDWR|O_CREAT|O_TRUNC) without O_NOFOLLOW, so it follows the attacker-created symlink and writes outside the staging directory before final overwrite confirmation runs. This appears related in class to the file-transfer symlink advisory, but it is a different bug: it affects kitten dnd remote drag-and-drop staging, uses different vulnerable code (kittens/dnd/drop.go and tools/utils/file_at_fd.go), and reproduces on commit 4aa4a5c0567a92553a8c20a88a4352da637fca5d, after the file-transfer O_NOFOLLOW fix. Version 0.47.2 patches the issue.

Executive ViewAI

Why It Matters

Kitty terminal versions 0.47.0 and 0.47.1 contain an arbitrary file write vulnerability exploitable through drag-and-drop interactions. No public exploit identified at time of analysis; however, the flaw enables attackers to overwrite files accessible to terminal users, creating file integrity risks for affected deployments. Organizations running these specific versions require immediate mitigation to prevent potential system compromise.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable drag-and-drop functionality in Kitty configuration, downgrade to Kitty version 0.46.x or earlier, restrict Kitty deployment to non-critical or air-gapped systems, and enforce least-privilege file system permissions for terminal users.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% 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
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

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

Vendor StatusVendor

SUSE

Severity: Important

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