
CVE catalog
CVE-2026-54056
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 loc
- Severity
- High · CVSS 7.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:L - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.27% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | kitty | sid | 0.48.2-1.1 | fixed |
| Debian | kitty | forky | 0.48.2-1.1 | fixed |
| Debian | kitty | trixie | 0.41.1-2+deb13u2 | not affected |
| Debian | kitty | trixie-security | 0.41.1-2+deb13u2 | not affected |
| Debian | kitty | bookworm | 0.26.5-5 | not affected |
| Cpe | kitty | Not reported | 0.47.2 | fixed |
| Cpe | kitty | Not reported | 0.47.2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | kitty | source | sid | 0.47.3-1 | not yet assigned | Not reported | [1139898] |
| Debian | kitty | source | forky | 0.47.3-1 | not yet assigned | Not reported | [1139898] |
| Debian | kitty | source | trixie | Not affected | unimportant | Not reported | [1139898] |
| Debian | kitty | source | bookworm | Not affected | unimportant | Not reported | [1139898] |
| Cpe | kitty | cpe | Not reported | 0.47.2 | Not reported | Not reported | Not reported |
| Cpe | kitty | cpe | Not reported | 0.47.2 | Not reported | NVD-CVE-2026-54056 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [kitty]Not affected
Details (2)
0.26.5-5· amd64 · bookwormNot affected
nvd · kitty · debian · bookworm
0.26.5-5· arm64 · bookwormNot affected
nvd · kitty · debian · bookworm
- [kitty-doc]Not affected
Source package: [kitty]
Details (2)
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
- [kitty-shell-integration]Not affected
Source package: [kitty]
Details (2)
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
- [kitty-terminfo]Not affected
Source package: [kitty]
Details (2)
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
0.26.5-5· all · bookwormNot affected
nvd · kitty · debian · bookworm
Observed:
References
- [https://github.com/kovidgoyal/kitty/security/advisories/GHSA-r892-cv7q-fw8x]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-54056]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-54056]
- [https://security-tracker.debian.org/tracker/CVE-2026-54056]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54056.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]