Command injection in kitty - #VU169686
Published: November 23, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands with the victim's privileges when a compromised session file is loaded.
The vulnerability exists due to improper neutralization of line breaks in kitty's session serializer when writing working directories supplied by OSC 7 or OSC 9;9 terminal output. A remote attacker can cause displayed terminal output to inject session directives that execute commands when the victim manually saves and reloads the session or when enabled session restoration saves it at logout and reloads it at login.