Out-of-bounds Write in the natural width branch of the text sizing protocol in kitty from 0.40.0 before 0.49.0 allows a program writing to the… (CVE-2026-80431)
Description
An out-of-bounds write vulnerability exists in kitty terminal emulator versions from 0.40.0 before 0.49.0. The flaw occurs in the natural width branch of 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 windows, tabs, and child processes.
CVSS v4.0
Affected software
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/kitty?arch=source&distro=stonkingpkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/resoluteRun 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
Technical Analysis
The vulnerability in kitty (CVE-2026-80431) is an out-of-bounds write triggered by a program writing to the terminal using an OSC 66 escape code payload containing a grapheme cluster longer than four codepoints. The function screen_handle_multicell_command() appends each codepoint to a fixed-size four-element array without capacity checks, leading to writes past the buffer. If an intermediate flush occurs, the buffer migrates to the heap, but writes still exceed the allocated space. This results in process termination of kitty and its associated windows and child processes.
Potential Impact
Exploitation of this vulnerability causes the kitty terminal process to terminate unexpectedly, which in turn closes all windows, tabs, and child processes managed by kitty. This results in 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 potentially long grapheme clusters in kitty terminal sessions.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-80431
- 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: 6ad3f5692cdf04f6566620dc
Added to database: 10/17/2026, 22:23:37 UTC
Last enriched: 10/17/2026, 23:35:22 UTC
Last updated: 10/17/2026, 23:35:22 UTC
Views: 3
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.