Code Injection in kitty - CVE-2026-42851
Published: September 22, 2026
Vulnerability details
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.
Affected software
Debian Linux
Ubuntu
kitty (Ubuntu package)
kitty (Debian package)
How to mitigate CVE-2026-42851
kitty (Ubuntu package) - addressed in versions 0.32.2-1ubuntu0.4+esm2, 0.45.0-1ubuntu0.1~esm2
kitty (Debian package) - update to 0.41.1-2+deb13u2