Skip to main content

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… (CVE-2026-80430)

0
Medium
Published: 09/25/2026 (09/25/2026, 14:17:00 UTC)
Source: GCVE Database
Product: kitty

Description

A vulnerability in kitty versions from 0.47.0 before 0.49.0 allows improper link resolution in the drag source staging path of the drag and drop protocol. This flaw enables a program writing to the terminal to create files and directories outside the intended staging directory by exploiting symlink targets that are not validated. The issue arises because the code resolves paths by constructing strings and opening directories without properly walking the directory tree, allowing creation of files and directories at arbitrary writable paths by the user running kitty.

CVSS v4.0

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Affected software

Ubuntu:Pro:20.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/focal
Affected versions
=0.14.3-1=0.14.4-1=0.14.6-1=0.15.0-1=0.15.0-1build1=0.15.0-1ubuntu0.2=0.15.0-1ubuntu0.2+esm1
Ubuntu:Pro:22.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/jammy
Affected versions
=0.19.3-1=0.21.2-1=0.21.2-1build1=0.21.2-1ubuntu0.22.04.1=0.21.2-1ubuntu0.22.04.1+esm1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/noble
Affected versions
=0.26.5-3ubuntu2=0.26.5-5ubuntu1=0.31.0-3=0.31.0-4=0.32.2-1=0.32.2-1build2=0.32.2-1build3=0.32.2-1ubuntu0.1=0.32.2-1ubuntu0.2=0.32.2-1ubuntu0.3=0.32.2-1ubuntu0.4=0.32.2-1ubuntu0.4+esm1=0.32.2-1ubuntu0.4+esm2
Ubuntu:26.10more threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=stonking
Affected versions
=0.45.0-1build1=0.47.0-3=0.47.4-1=0.48.2-1.1ubuntu1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/resolute
Affected versions
=0.41.1-2=0.43.1-1=0.44.0-1=0.45.0-1=0.45.0-1build1=0.45.0-1ubuntu0.1~esm1=0.45.0-1ubuntu0.1~esm2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 23:35:28 UTC

Technical Analysis

CVE-2026-80430 describes an improper link resolution vulnerability in kitty's drag and drop protocol implementation affecting versions from 0.47.0 before 0.49.0. The function subdir_data_for_drag() resolves descendant paths by string construction and opening directories with safe_open rather than walking the tree component-by-component. This allows a crafted client to declare two entries with the same name where the first is a symlink to an arbitrary absolute path and the second a directory. The code ignores mkdirat() failure with EEXIST, causing subsequent path resolution to follow the symlink outside the staging directory. This directory descriptor is then used for file and directory creation operations, enabling creation at any path writable by the user. Entry names are sanitized but symlink targets are not, and files are created with O_CREAT | O_WRONLY | O_EXCL at mode 0644, preventing overwriting existing files but allowing creation of new files and directories with mode 0755.

Potential Impact

An attacker able to write to the terminal can create files and directories at arbitrary locations writable by the user running kitty, potentially leading to unauthorized file creation outside the intended staging area. Existing files cannot be overwritten, but new files and directories can be created, which may be used to escalate privileges or disrupt system operation depending on the context and permissions.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should exercise caution when running untrusted programs that write to the terminal and avoid using vulnerable kitty versions in untrusted environments.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-80430
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:Pro:26.04:LTS"]
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ad3f5692cdf04f6566620dd

Added to database: 10/17/2026, 22:23:37 UTC

Last enriched: 10/17/2026, 23:35:28 UTC

Last updated: 10/17/2026, 23:35:28 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses