CVE-2026-80430 Improper link resolution in the kitty drag and drop protocol allows a client to create files outside the staging directory
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Improper Link Resolution Before File Access in the drag source staging path of the drag and drop protocol in kitty from 0.47.0 before 0.49.0 allows a program writing to the terminal to create files and directories at paths outside the staging directory, because subdir_data_for_drag() in kitty/dnd.c resolves a descendant of the staged item tree by constructing a path string and opening it with safe_open(path, O_DIRECTORY | O_RDONLY, 0) rather than by walking the tree one component at a time, so a client that declares two entries with the same name, the first a symlink whose target is an arbitrary absolute path and the second a directory, causes mkdirat() to fail with EEXIST, which the code ignores, and causes the subsequent path resolution to follow the symlink and return a directory descriptor outside the staging directory, which is then passed as the dirfd argument to add_payload() and used for every further create operation on that item and its descendants. Entry names are sanitised against path separators and dot components, but symlink targets are not validated. Files are created with O_CREAT | O_WRONLY | O_EXCL at mode 0644, so existing files cannot be overwritten, and directories are created with mkdirat() at mode 0755, so the attacker can create intermediate directories that did not previously exist. This results in the creation of files and directories at any path writable by the user running kitty, provided the symlink target is an existing directory.
Upgrade path
8 packages: 1 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/kitty(Debian 12) | = 0.26.5-5; = 0.30.1-1; = 0.31.0-1; = 0.31.0-2 +37 more | No fix listed | No fix yet |
| debian/kitty(Debian 13) | = 0.41.1-2; = 0.41.1-2+deb13u1; = 0.41.1-2+deb13u2; = 0.42.1-1 +15 more | No fix listed | No fix yet |
| debian/kitty(Debian 14) | = 0.41.1-2; = 0.42.1-1; = 0.42.2-1; = 0.43.1-1 +13 more | No fix listed | No fix yet |
| 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 |
| Kovid Goyal kitty | >= 0.47.0, < 0.49.0 | 0.49.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Kovid Goyal kitty | >= 0.47.0, < 0.49.0 | 0.49.0 |
| debian/kitty(Debian:12) | All versions | No fix listed |
| debian/kitty(Debian:12) | = 0.26.5-5 | No fix listed |
| debian/kitty(Debian:12) | = 0.30.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-4 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.33.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.33.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.34.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.35.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.35.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.37.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.38.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.39.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.39.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.40.0-1 | No fix listed |
Show 57 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/kitty(Debian:12) | = 0.41.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.42.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.42.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.43.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.44.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.45.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.45.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.46.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.46.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.3-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.4-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.48.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.48.2-1.1 | No fix listed |
| debian/kitty(Debian:13) | All versions | No fix listed |
| debian/kitty(Debian:13) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:13) | = 0.41.1-2+deb13u1 | No fix listed |
| debian/kitty(Debian:13) | = 0.41.1-2+deb13u2 | No fix listed |
| debian/kitty(Debian:13) | = 0.42.1-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.42.2-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.43.1-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.44.0-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.45.0-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.45.0-2 | No fix listed |
| debian/kitty(Debian:13) | = 0.46.1-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.46.2-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.47.0-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.47.0-2 | No fix listed |
| debian/kitty(Debian:13) | = 0.47.0-3 | No fix listed |
| debian/kitty(Debian:13) | = 0.47.3-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.47.4-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.48.2-1 | No fix listed |
| debian/kitty(Debian:13) | = 0.48.2-1.1 | No fix listed |
| debian/kitty(Debian:14) | All versions | No fix listed |
| 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 |
| debian/kitty(Debian:14) | = 0.47.3-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.47.4-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.48.2-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.48.2-1.1 | 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 |
References
- github.com patch
- github.com related
- github.com release-notes
- secur0.com technical-description third-party-advisory
- Debian Security Tracker CVE-2026-80430 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-87063 third-party-advisory