CVE-2026-54056 Kitty has an arbitrary file overwrite via symlink following in `kitten dnd` remote drop staging
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
6 packages: 2 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/kitty(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/kitty(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/kitty(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/kitty(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/kitty(Debian 14) | < 0.47.3-1; = 0.41.1-2; = 0.42.1-1; = 0.42.2-1 +9 more | 0.47.3-1 | Fixed |
| kovidgoyal kitty | = >= 0.47.0, < 0.47.2; >= 0.47.0, < 0.47.2 | 0.47.2 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kovidgoyal kitty | = >= 0.47.0, < 0.47.2 | No fix listed |
| debian/kitty(Debian:14) | < 0.47.3-1 | 0.47.3-1 |
| debian/kitty(Debian:14) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:14) | = 0.42.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.42.2-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.43.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.44.0-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.45.0-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.45.0-2 | No fix listed |
| debian/kitty(Debian:14) | = 0.46.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.46.2-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.47.0-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.47.0-2 | No fix listed |
| debian/kitty(Debian:14) | = 0.47.0-3 | No fix listed |
| ubuntu/kitty(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/kitty(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/kitty(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/kitty(Ubuntu:26.10) | All versions | No fix listed |
| kovidgoyal kitty | >= 0.47.0, < 0.47.2 | 0.47.2 |
References
- https://github.com/kovidgoyal/kitty/security/advisories/GHSA-r892-cv7q-fw8x exploit mitigation vendor-advisory
- Debian Security Tracker CVE-2026-54056 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking