CVE-2026-80431Kovid Goyal Kitty out-of-bounds write
CVSS score
6.8
Medium
CVSS 4.0 from 4daa8cea-433a-44bd-9456-53b127fc289a
Exploit probability (EPSS)
0.13%
0.13% chance of exploitation in the next 30 days, higher than 2.91% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
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 terminal to write past the end of a fixed-size buffer, because screen_handle_multicell_command() in kitty/screen.c appends each codepoint of a grapheme cluster with lc.chars[lc.count++] = ch without any capacity check, while lc is declared by the RAII_ListOfChars macro as a four-element char_type array in the function's stack frame, so an OSC 66 escape code whose payload carries a grapheme cluster longer than four codepoints writes beyond that buffer, one 32-bit value per additional codepoint, in the order the codepoints appear. Where the cluster is preceded in the same payload by a sequence that causes an intermediate flush, the buffer is first migrated to the heap by ensure_space_for_chars() and the write occurs past the heap allocation instead. This results in termination of the kitty process and therefore of all its windows, tabs and child processes.
Source: NVD · CNA: 4daa8cea-433a-44bd-9456-53b127fc289a
How to fix it, step by step
Check whether you're affected
Find every system running Kovid Goyal Kitty and compare its version with the affected versions.
Update to a fixed version
- Update Kitty to 0.49.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- Passive
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| Kovid Goyal Kitty | ≥ 0.40.0, < 0.49.0 |
Weakness
- CWE-787 out-of-bounds write
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-80431 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.1% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-80431?
CVE-2026-80431 has a CVSS 4.0 base score of 6.8 (medium).
Which versions are affected?
Kovid Goyal Kitty (≥ 0.40.0, < 0.49.0)
Is there a patch for CVE-2026-80431?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.