CVE-2026-80431: CWE-787 Out-of-bounds Write in Kovid Goyal kitty
CVE-2026-80431 is an out-of-bounds write vulnerability in the kitty terminal emulator affecting versions from 0.40.0 up to but not including 0.49.0. The flaw occurs in the text sizing protocol when processing OSC 66 escape codes with grapheme clusters longer than four codepoints, causing writes beyond a fixed-size buffer. This can lead to termination of the kitty process and all its associated windows, tabs, and child processes.
AI Analysis
Technical Summary
The vulnerability arises in kitty's screen_handle_multicell_command() function, which appends each codepoint of a grapheme cluster to a fixed-size four-element array without checking capacity. When an OSC 66 escape code payload contains a grapheme cluster longer than four codepoints, it writes past the buffer boundary. If an intermediate flush occurs, the buffer migrates to the heap, but the out-of-bounds write still happens beyond the allocated heap space. This results in process termination.
Potential Impact
Exploitation causes the kitty terminal process to terminate unexpectedly, which in turn closes all windows, tabs, and child processes managed by kitty. This leads to denial of service for users relying on the terminal emulator. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted OSC 66 escape codes with long grapheme clusters in kitty. Monitor vendor channels for updates.
CVE-2026-80431: CWE-787 Out-of-bounds Write in Kovid Goyal kitty
Description
CVE-2026-80431 is an out-of-bounds write vulnerability in the kitty terminal emulator affecting versions from 0.40.0 up to but not including 0.49.0. The flaw occurs in the text sizing protocol when processing OSC 66 escape codes with grapheme clusters longer than four codepoints, causing writes beyond a fixed-size buffer. This can lead to termination of the kitty process and all its associated windows, tabs, and child processes.
CVSS v4.0
Score 6.8medium
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
The vulnerability arises in kitty's screen_handle_multicell_command() function, which appends each codepoint of a grapheme cluster to a fixed-size four-element array without checking capacity. When an OSC 66 escape code payload contains a grapheme cluster longer than four codepoints, it writes past the buffer boundary. If an intermediate flush occurs, the buffer migrates to the heap, but the out-of-bounds write still happens beyond the allocated heap space. This results in process termination.
Potential Impact
Exploitation causes the kitty terminal process to terminate unexpectedly, which in turn closes all windows, tabs, and child processes managed by kitty. This leads to denial of service for users relying on the terminal emulator. There is no indication of code execution or privilege escalation from the provided data.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid processing untrusted OSC 66 escape codes with long grapheme clusters in kitty. Monitor vendor channels for updates.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Secur0
- Date Reserved
- 2026-08-26T10:49:01.410Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab697d1f7a7c54106f62dd1
Added to database: 09/25/2026, 15:48:33 UTC
Last enriched: 09/25/2026, 16:02:50 UTC
Last updated: 09/25/2026, 16:26:22 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.