Home / Kovid Goyal / kitty / CVE-2026-95834
CVE-2026-95834: is it exploited, and which versions of Kovid Goyal kitty are affected and fixed?
CVE-2026-95834 is an use after free vulnerability in Kovid Goyal kitty. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: kitty from 0.47.0 before 0.49.0 (CVE record by Secur0). Fixed in 0.49.0 (CVE record by Secur0). Severity: Medium (4.6, CVSS 4.0, from Secur0).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:05 UTC and NVD November 19, 2026, 07:06 UTC.
What is CVE-2026-95834?
Use after free in the kitty drag and drop protocol when a drag source item is aborted mid-transfer
Use After Free in the drag source 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 cause the terminal to read from and write to freed heap memory, because drag_remote_file_data() in kitty/dnd.c holds a DragRemoteItem pointer into an array it does not own, calls toplevel_data_for_drag() or subdir_data_for_drag(), and then continues to use that pointer. Those helpers, and add_payload() and populate_dir_entries() which they call, report errors through the abrt() macro, which expands to cancel_drag() followed by a plain return, and cancel_drag() calls drag_free_offer(), which frees the array the pointer refers to. The helpers return void, so the caller receives no indication that the teardown happened, and proceeds to call all_children_complete() on the freed pointer, which dereferences it, and then to write through it. That dereference is guarded by a local flag that is set when the request carries no payload and announces no further data, which is the same condition that selects the finalisation block of add_payload(), so the error paths in that block reach it: a create that fails because an entry of the same name already exists, because the client may declare two entries with one name and the create operations use O_CREAT with O_EXCL and symlinkat(), a mkdirat() failure other than EEXIST, and the directory entry allocation paths. Both branches reach it. In the top level branch the caller's pointer is never cleared, so clearing the owning structure's own pointers during teardown does not help. In the sub directory branch subdir_data_for_drag() sets the caller's pointer to NULL on entry and assigns it only after its own last error path, so its own aborts leave the caller with NULL and are stopped by a null check, but it then calls add_payload() with that pointer set, and an abort there leaves the caller holding a freed child node inside the item tree, which drag_free_offer() frees by recursion. This results in undefined behaviour in the terminal process, reachable from the byte stream of any program running in the window.
From the CVE record by Secur0, last updated September 25, 2026, 16:59 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Kovid Goyal | kitty | from 0.47.0 before 0.49.0 | 0.49.0 |
As the CVE record by Secur0 states it, last updated September 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-95834?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.6 | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N | Secur0 |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-95834 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, September 25, 2026)
- EPSS
- 0.13% probability of exploitation activity in the next 30 days, percentile 2.5 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-416 Use After Free
How do I fix it? (from the CVE record)
Upgrade to kitty 0.49.0 or later.
Where are the vendor advisories and references?
- https://github.com/kovidgoyal/kitty/commit/b54bfbb4f85f992edca9b04f5c0c2612454eec23 patch
- https://github.com/kovidgoyal/kitty/releases/tag/v0.49.0 release-notes
- https://secur0.com/en/cna/cve-list/cve-2026-95834-kitty-dnd-use-after-free third-party-advisory, technical-description
Who found and reported it?
- Gabriel Machado Tavares (finder)
- Cristian Fernández Cornejo (analyst)
- Xoán M. Otero Jorge (analyst)
- Secur0 CNA (coordinator)
- Kovid Goyal (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- September 22, 2026
- Published
- September 25, 2026, 16:28 UTC
- CVE record updated
- September 25, 2026, 16:59 UTC by Secur0
- NVD
- Awaiting Analysis, last modified September 29, 2026, 21:32 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:06 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect kitty?
- Sep 25, 2026CVE-2026-95835 Kovid Goyal kitty: missing authorization
- Sep 25, 2026CVE-2026-80432 Kovid Goyal kitty: missing authorization
- Sep 25, 2026CVE-2026-80431 Kovid Goyal kitty: out-of-bounds write (memory corruption)
- Sep 25, 2026CVE-2026-80430 Kovid Goyal kitty: link following (a symlink lets an attacker reach other files)
- Sep 25, 2026CVE-2026-95832 Kovid Goyal kitty: injection
Questions about CVE-2026-95834
Is CVE-2026-95834 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.13% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Kovid Goyal kitty are affected by CVE-2026-95834?
kitty from 0.47.0 before 0.49.0, per the CVE record by Secur0. The tables above give every range the sources list.
Which version fixes CVE-2026-95834?
0.49.0, per the CVE record by Secur0. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-95834?
Medium (4.6, CVSS 4.0, from Secur0). The severity table above shows each score with its source.
Where is the official record of CVE-2026-95834?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.