CVE-2026-80430
Last modified
CVE-2026-80430 is a medium-severity vulnerability rated 4.6/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Kovid Goyal | kitty | >= 0.47.0, < 0.49.0 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-80430?
How severe is CVE-2026-80430?
How do I fix CVE-2026-80430?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-80424IBM DataStage on Cloud Pak for Data 5.4.0.0 could allow a re…9.1
- CVE-2026-80425IBM DataStage on Cloud Pak for Data 5.4.0.0 could allow a re…8.8
- CVE-2026-80426FiftyOne renders a dataset field's description as markup. Th…7.1
- CVE-2026-80427bestzip builds the argument list for the system zip utility …8.4
- CVE-2026-80428ILIAS before versions 9.22, 10.10, and 11.3 contains an unau…9.8
- CVE-2026-8043External control of a file name in Ivanti Xtraction before v…9.6
- CVE-2026-80431Out-of-bounds Write in the natural width branch of the text …6.8
- CVE-2026-80432Missing Authorization in the drop handling path of the drag …6
- CVE-2026-80433Subscriber Sensitive Data Exposure in SureFeedback Client Si…7.5
- CVE-2026-80434IBM DataStage on Cloud Pak for Data 5.4.0.0 could allow a re…5
- CVE-2026-80436IBM DataStage on Cloud Pak for Data 5.4.0.0 could allow a re…8.5
- CVE-2026-80437The Ninja Forms WordPress plugin from 3.14.10 before 3.15.2 …4.8
Are you affected by CVE-2026-80430?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
