Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconHost malicious remote drag source
-
DeliveryVictim drags payload into kitty
-
ExploitSend text/uri-list with case-colliding entries
-
InstallStage symlink to target file
-
C2Second write follows symlink via openat without O_NOFOLLOW
-
ExecuteOverwrite arbitrary user-writable file
-
ImpactCode 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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
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.
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
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-36578
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB