SB2026092260 - Multiple vulnerabilities in kitty



SB2026092260 - Multiple vulnerabilities in kitty

Published: September 22, 2026

Security Bulletin ID SB2026092260
CSH Severity
High
Patch available
YES
Number of vulnerabilities 4
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 50% Medium 50%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 4 vulnerabilities.


1) Code Injection (CVE-ID: CVE-2026-42851)

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of generation of code in the @kitty-edit DCS handler and color configuration parser when processing attacker-controlled terminal output. A remote attacker can send terminal control sequences containing a --color=geninclude directive to execute arbitrary code.

User interaction is required to view attacker-controlled bytes through a kitty terminal; no further approval, editor interaction, or remote-control permission is required.


2) Command injection (CVE-ID: CVE-2026-42850)

CWE-ID: CWE-77 - Command injection

CVSSv4: 7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to execute arbitrary shell commands.

The vulnerability exists due to improper neutralization of special elements used in a command in kitty's error handling for the kitty ssh function when processing a specially crafted kitty escape code received over a connection. A remote attacker can send a specially crafted escape code that injects shell commands to execute arbitrary shell commands.

User interaction is required to establish or accept a connection with the attacker.


3) Integer overflow (CVE-ID: CVE-2026-33642)

CWE-ID: CWE-190 - Integer overflow

CVSSv4: 8.8 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service, disclose sensitive information, or corrupt heap memory.

The vulnerability exists due to integer overflow in the handle_compose_command() bounds check in kitty/graphics.c when processing crafted graphics escape sequences. A remote attacker can send crafted graphics escape sequences to a kitty terminal to cause a denial of service, disclose sensitive information, or corrupt heap memory.

No user interaction or non-default configuration is required.


4) Heap-based buffer overflow (CVE-ID: CVE-2026-33633)

CWE-ID: CWE-122 - Heap-based Buffer Overflow

CVSSv4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]


The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in the load_image_data() function in kitty/graphics.c when processing a PNG-format Kitty graphics protocol command whose payload exceeds the resized buffer capacity. A remote attacker can send a specially crafted graphics protocol command to cause a denial of service.

User interaction is required to process the malicious terminal input.


Remediation

Install update from vendor's website.