Command injection in kitty - #VU169686

 

Command injection in kitty - #VU169686

Published: November 23, 2026


Vulnerability identifier: #VU169686
CSH Severity: Medium
CVSS v4: 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]
CVE-ID: N/A
CWE-ID: CWE-77
Exploitation vector: Local access
Exploit availability: No public exploit available

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.


Affected software

kitty

Remediation

Install security update from vendor's website.

kitty - update to 0.51.1

External References

Related Security Bulletins