Skip to main content

CVE-2026-95832: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') in Kovid Goyal kitty

0
Critical
VulnerabilityCVE-2026-95832cvecve-2026-95832cwe-74
Published: 09/25/2026 (09/25/2026, 12:54:25 UTC)
Source: CVE Database V5
Vendor/Project: Kovid Goyal
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Affected software

Kovid Goyal

kitty

Affected versions
>=0.47.3 <0.49.0
GitHub Actionsmore threats →cve
kitty
pkg:github/kitty
Affected versions
>=0.47.3 <0.49.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/25/2026, 16:02:45 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses