Skip to main content

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)

0
Medium
Published: 09/25/2026 (09/25/2026, 14:17:00 UTC)
Source: GCVE Database
Product: kitty

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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Ubuntu:Pro:20.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/focal
Affected versions
=0.14.3-1=0.14.4-1=0.14.6-1=0.15.0-1=0.15.0-1build1=0.15.0-1ubuntu0.2=0.15.0-1ubuntu0.2+esm1
Ubuntu:Pro:22.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/jammy
Affected versions
=0.19.3-1=0.21.2-1=0.21.2-1build1=0.21.2-1ubuntu0.22.04.1=0.21.2-1ubuntu0.22.04.1+esm1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/noble
Affected versions
=0.26.5-3ubuntu2=0.26.5-5ubuntu1=0.31.0-3=0.31.0-4=0.32.2-1=0.32.2-1build2=0.32.2-1build3=0.32.2-1ubuntu0.1=0.32.2-1ubuntu0.2=0.32.2-1ubuntu0.3=0.32.2-1ubuntu0.4=0.32.2-1ubuntu0.4+esm1=0.32.2-1ubuntu0.4+esm2
Ubuntu:26.10more threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=stonking
Affected versions
=0.45.0-1build1=0.47.0-3=0.47.4-1=0.48.2-1.1ubuntu1
Ubuntu:Pro:26.04:LTSmore threats →ghsa
kitty
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/resolute
Affected versions
=0.41.1-2=0.43.1-1=0.44.0-1=0.45.0-1=0.45.0-1build1=0.45.0-1ubuntu0.1~esm1=0.45.0-1ubuntu0.1~esm2

Run 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

AILast updated: 10/17/2026, 23:35:22 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses