CVE-2026-80430

Source
https://cve.org/CVERecord?id=CVE-2026-80430
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80430.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-80430
Downstream
Published
2026-09-25T13:08:13Z
Modified
2026-09-27T08:04:15Z
Severity
  • 4.6 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Improper link resolution in the kitty drag and drop protocol allows a client to create files outside the staging directory
Details

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.

Database specific
{
    "cna_assigner":  "Secur0",
    "cwe_ids":  [
        "CWE-59"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80430.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  "0.47.0"
                },
                {
                    "fixed":  "0.49.0"
                }
            ],
            "source":  "AFFECTED_FIELD"
        },
        {
            "extracted_events":  [
                {
                    "introduced":  "0.47.0"
                },
                {
                    "fixed":  "0.49.0"
                }
            ],
            "source":  "CPE_FIELD"
        },
        {
            "extracted_events":  [
                {
                    "introduced":  "0.47.0"
                },
                {
                    "fixed":  "0.49.0"
                }
            ],
            "source":  "DESCRIPTION"
        }
    ]
}
References

Affected packages

Git / github.com/kovidgoyal/kitty

Affected ranges

Type
GIT
Repo
https://github.com/kovidgoyal/kitty
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Fixed
Database specific
Show details
{
    "source":  "REFERENCES"
}

Affected versions

Other
nightly
v0.*
v0.1.0
v0.10.0
v0.10.1
v0.11.0
v0.11.1
v0.11.2
v0.11.3
v0.12.0
v0.12.1
v0.12.2
v0.12.3
v0.13.0
v0.13.1
v0.13.2
v0.13.3
v0.14.0
v0.14.1
v0.14.2
v0.14.3
v0.14.4
v0.14.5
v0.14.6
v0.15.0
v0.15.1
v0.16.0
v0.17.0
v0.17.1
v0.17.2
v0.17.3
v0.17.4
v0.18.0
v0.18.1
v0.18.2
v0.18.3
v0.19.0
v0.19.1
v0.19.2
v0.19.3
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.6
v0.2.7
v0.2.8
v0.20.0
v0.20.1
v0.20.2
v0.20.3
v0.21.0
v0.21.1
v0.21.2
v0.22.0
v0.22.1
v0.22.2
v0.23.0
v0.23.1
v0.24.0
v0.24.1
v0.24.2
v0.24.3
v0.24.4
v0.25.0
v0.25.1
v0.25.2
v0.26.0
v0.26.1
v0.26.2
v0.26.3
v0.26.4
v0.26.5
v0.27.0
v0.27.1
v0.28.0
v0.28.1
v0.29.0
v0.29.1
v0.29.2
v0.3.0
v0.30.0
v0.30.1
v0.31.0
v0.32.0
v0.32.1
v0.32.2
v0.33.0
v0.33.1
v0.34.0
v0.34.1
v0.35.0
v0.35.1
v0.35.2
v0.36.0
v0.36.1
v0.36.2
v0.36.3
v0.36.4
v0.37.0
v0.38.0
v0.38.1
v0.39.0
v0.39.1
v0.4.0
v0.4.1
v0.4.2
v0.40.0
v0.40.1
v0.41.0
v0.41.1
v0.42.0
v0.42.1
v0.42.2
v0.43.0
v0.43.1
v0.44.0
v0.45.0
v0.46.0
v0.46.1
v0.46.2
v0.47.0
v0.47.1
v0.47.2
v0.47.3
v0.47.4
v0.48.0
v0.48.1
v0.48.2
v0.5.0
v0.5.1
v0.6.0
v0.6.1
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4
v0.9.0
v0.9.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80430.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "333926759187814041512719454723912720305",
            "length":  1711
        },
        "id":  "CVE-2026-80430-2d166f70",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c",
            "function":  "subdir_data_for_drag"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "31081372774300311744781003812007057087",
            "length":  549
        },
        "id":  "CVE-2026-80430-9a3de086",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c",
            "function":  "find_by_handle"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "219599264351965710983420424729546074930",
            "length":  1746
        },
        "id":  "CVE-2026-80430-9c0f22fc",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c",
            "function":  "toplevel_data_for_drag"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "166312109511004736765352422487178110917",
            "length":  2094
        },
        "id":  "CVE-2026-80430-c5e185f7",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c",
            "function":  "drag_remote_file_data"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "135539632812507227026047538342276949640",
            "length":  401
        },
        "id":  "CVE-2026-80430-d5f9369a",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c",
            "function":  "get_errno_name"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "142385131052298339158818237682588127580",
                "206104538430612720340146344774231310334",
                "210420855028304138143023381976269575722",
                "325463815678902760140728849047746573931",
                "138781552672582983192004702650432711658",
                "65159487243245539716381366887716815759",
                "132680877792376963017342346479052639471",
                "305370133354340062575613948378467362396",
                "264238761174797211111849064799149628400",
                "264448503894636525132085859529745590796",
                "247970937369791720992785353888192778883",
                "217883081352600930476159773727442689016",
                "204794254374239355199479450607820367010",
                "110612171124029388380718901333906463325",
                "64597484528627546659957384113989079683",
                "50838665406249486585233131480112948235",
                "18936557023757447169329596193741746030",
                "110102402683740422772317051291904101991",
                "312963735216651357993218268883557347244",
                "320848603999870992849368736720028846280",
                "40359070381074594857026842902298829268",
                "6750615318163476261554438367095449616",
                "232690129283353870541609992434752636247",
                "267971008638490256353186952115638518120",
                "25234455096844839809454652280933452025",
                "71858808514891356517548505913050467834",
                "261287659770768719522574462205937363562",
                "325292090648272938046825147005844655990",
                "172799263106160578972764414467745402622",
                "68837791068145086212232721276400614495",
                "264035001557718076842797048444139208372",
                "103740163794738500102884769357469321737",
                "154963085856109706947506519652807886201",
                "254727619107631137204053733628436730713",
                "298702772393881019016973822727553918535",
                "80058246728475208996479961421148185786",
                "265402409030424431374309689890254788446",
                "101388979963545317791193803271840797970",
                "92255393505046406000417604604787736468",
                "292389515910497451149356327257453422760",
                "319618936016626516667963823665079787749",
                "290672554115278921720083136474240686378",
                "198099288838237896144186617666285630720",
                "120405248714246453087993558376102479200",
                "31774251398243080774347879287365788158",
                "193517802169048541554821139317773726690",
                "9131904710836374871910251235085389780"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-80430-eb57748c",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/kovidgoyal/kitty/commit/554908ed0b4d010cf9821c75449c7f7c79a6170a",
        "target":  {
            "file":  "kitty/dnd.c"
        }
    }
]
vanir_signatures_modified
"2026-09-27T08:04:15Z"