CVE-2026-95832: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in Kovid Goyal kitty
CVE-2026-95832 is a critical vulnerability in the kitty terminal emulator affecting versions from 0.47.3 up to but not including 0.49.0. It involves improper neutralization of special elements in output used by a downstream component, specifically in the color control escape code handler. This flaw allows an attacker to execute arbitrary commands in the user's shell by crafting malicious input that is echoed back to the terminal without proper sanitization. The vulnerability leverages the way kitty processes unrecognized field names in escape sequences, enabling command injection with the privileges of the user running the terminal.
AI Analysis
Technical Summary
The vulnerability arises from kitty's color_control() function in kitty/window.py, which responds to queries for unrecognized field names by including the field name in its reply. This reply is then written to the pseudoterminal master by write_escape_code_to_child() in kitty/screen.c without neutralizing shell-special characters, allowing the injected content to be interpreted as shell commands. Although the payload is restricted to printable ASCII and delimiters like ';' and '=' are consumed, other printable characters remain, enabling command composition. Additionally, a newline character is available from handle_remote_ssh() in kitty/window.py, which writes SSH data to the pseudoterminal master before credential verification, facilitating command injection. This results in execution of attacker-chosen commands with the user's privileges.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the user running the kitty terminal emulator. This can lead to full compromise of the user's environment, data theft, or further system compromise. The vulnerability is rated critical with a CVSS 4.0 score of 9.3, reflecting high attack complexity but severe impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running untrusted programs that write to the terminal or disable features that process escape sequences if possible. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-95832: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in Kovid Goyal kitty
Description
CVE-2026-95832 is a critical vulnerability in the kitty terminal emulator affecting versions from 0.47.3 up to but not including 0.49.0. It involves improper neutralization of special elements in output used by a downstream component, specifically in the color control escape code handler. This flaw allows an attacker to execute arbitrary commands in the user's shell by crafting malicious input that is echoed back to the terminal without proper sanitization. The vulnerability leverages the way kitty processes unrecognized field names in escape sequences, enabling command injection with the privileges of the user running the terminal.
CVSS v4.0
Score 9.3critical
Affected software
Kovid Goyal
kitty
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises from kitty's color_control() function in kitty/window.py, which responds to queries for unrecognized field names by including the field name in its reply. This reply is then written to the pseudoterminal master by write_escape_code_to_child() in kitty/screen.c without neutralizing shell-special characters, allowing the injected content to be interpreted as shell commands. Although the payload is restricted to printable ASCII and delimiters like ';' and '=' are consumed, other printable characters remain, enabling command composition. Additionally, a newline character is available from handle_remote_ssh() in kitty/window.py, which writes SSH data to the pseudoterminal master before credential verification, facilitating command injection. This results in execution of attacker-chosen commands with the user's privileges.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary shell commands with the privileges of the user running the kitty terminal emulator. This can lead to full compromise of the user's environment, data theft, or further system compromise. The vulnerability is rated critical with a CVSS 4.0 score of 9.3, reflecting high attack complexity but severe impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should avoid running untrusted programs that write to the terminal or disable features that process escape sequences if possible. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Secur0
- Date Reserved
- 2026-09-22T16:30:06.022Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ab697d1f7a7c54106f62dcb
Added to database: 09/25/2026, 15:48:33 UTC
Last enriched: 09/25/2026, 16:02:45 UTC
Last updated: 09/25/2026, 16:02:45 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.