// Güvenlik

The critical vulnerability in the kitty terminal allows commands to be executed in the shell

A critical vulnerability affecting versions of the kitty terminal emulator between 0.47.3 and 0.49.0 allows any program that writes text to the terminal to execute commands in the user's shell. The issue was fixed in version 0.49.0.

A critical security vulnerability has been discovered in the popular terminal emulator kitty, affecting versions between 0.47.3 and 0.49.0. The issue, tracked as CVE-2026-95832, allows any program that writes output to the terminal to execute a command of its choosing in the user’s shell. The vulnerability was fixed in kitty 0.49.0 and is rated critical with a score of 9.3 on the CVSS 4.0 scale.

How the vulnerability works

When responding to color control queries, kitty inserts an unrecognized field name as-is into the response. The color_control() function responsible for color control writes this name into the response, and write_escape_code_to_child() sends the response to the pseudoterminal master device. The shell cannot distinguish these bytes coming over the PTY from text the user typed on the keyboard; the contents of the response are processed as if they were a command typed directly into the shell.

The payload is kept limited to printable ASCII characters, and the semicolon and equals sign used as separators are consumed. However, all remaining printable characters are preserved, and this is enough to construct a one-line shell command. The newline needed at the beginning of the command comes from the handle_remote_ssh() function. This function writes bytes starting with a newline to the PTY master device before the credentials carried in the SSH request are verified.

Who is at risk

The affected version range is between 0.47.3 and 0.49.0. 0.47.3 is the version of the fix released for the earlier CVE-2026-54057 vulnerability; the new vulnerability bypasses this fix. The attack vector is local (AV:L) and user interaction is passive (UI:P). That is, triggering the vulnerability does not require the user to click a link; it is enough for a program running in the terminal or an SSH session to produce a specially crafted sequence. Even an installed CLI tool, a build script, or a log line can print this sequence, and the command runs with the user’s privileges.

What to do

If you use kitty, check the version number with the kitty --version command and update to 0.49.0. If your distribution’s package repository has not brought the new version, you can install the updated package from the project’s official release page (github.com/kovidgoyal/kitty/releases/tag/v0.49.0). Details of the vulnerability are in the NVD record and in two fix commits in the kitty repository.

Source: CISA KEV · NVD

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎