CVE-2026-95834: CWE-416 Use After Free in Kovid Goyal kitty
CVE-2026-95834 is a use-after-free vulnerability in the drag and drop protocol implementation of the kitty terminal emulator versions 0.47.0 up to but not including 0.49.0. The flaw occurs when the terminal processes drag source path data, leading to dereferencing and writing to freed heap memory. This can cause undefined behavior in the terminal process when programs write to the terminal and trigger the vulnerable code path.
AI Analysis
Technical Summary
This vulnerability arises from improper handling of pointers in the drag_remote_file_data() function within kitty's drag and drop code. Specifically, a DragRemoteItem pointer into an array not owned by the function is used after the array is freed during error handling paths. The error handling uses an abrt() macro that cancels the drag and frees memory but does not inform the caller, which then continues to dereference and write through the freed pointer. This use-after-free condition can be triggered by programs writing to the terminal that initiate drag and drop operations with certain error conditions, leading to undefined behavior in the terminal process.
Potential Impact
Exploitation of this vulnerability can cause the kitty terminal process to read from and write to freed heap memory, resulting in undefined behavior. The CVSS 4.0 base score is 4.6 (medium severity), reflecting local attack vector with low complexity and requiring user interaction. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid running untrusted programs that might trigger drag and drop operations in kitty, or consider using a different terminal emulator version outside the affected range.
CVE-2026-95834: CWE-416 Use After Free in Kovid Goyal kitty
Description
CVE-2026-95834 is a use-after-free vulnerability in the drag and drop protocol implementation of the kitty terminal emulator versions 0.47.0 up to but not including 0.49.0. The flaw occurs when the terminal processes drag source path data, leading to dereferencing and writing to freed heap memory. This can cause undefined behavior in the terminal process when programs write to the terminal and trigger the vulnerable code path.
CVSS v4.0
Score 4.6medium
Affected software
Kovid Goyal
kitty
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability arises from improper handling of pointers in the drag_remote_file_data() function within kitty's drag and drop code. Specifically, a DragRemoteItem pointer into an array not owned by the function is used after the array is freed during error handling paths. The error handling uses an abrt() macro that cancels the drag and frees memory but does not inform the caller, which then continues to dereference and write through the freed pointer. This use-after-free condition can be triggered by programs writing to the terminal that initiate drag and drop operations with certain error conditions, leading to undefined behavior in the terminal process.
Potential Impact
Exploitation of this vulnerability can cause the kitty terminal process to read from and write to freed heap memory, resulting in undefined behavior. The CVSS 4.0 base score is 4.6 (medium severity), reflecting local attack vector with low complexity and requiring user interaction. There is no indication of privilege escalation or remote code execution from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, avoid running untrusted programs that might trigger drag and drop operations in kitty, or consider using a different terminal emulator version outside the affected range.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Secur0
- Date Reserved
- 2026-09-22T16:30:20.014Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab6a5d5f7a7c54106055648
Added to database: 09/25/2026, 16:48:21 UTC
Last enriched: 09/25/2026, 17:03:07 UTC
Last updated: 09/25/2026, 17:03:07 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.