CVE-2026-54057
Received Received - Intake
Kitty Terminal OSC 21 Color-Control Input Injection

Publication date: 2026-06-12

Last updated on: 2026-06-12

Assigner: GitHub, Inc.

Description
Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.3, kitty's OSC 21 (color-control) query reply reflects attacker-controlled bytes, including newlines, into the shell's input without sanitization. Version 0.47.3 fixes the issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-12
Last Modified
2026-06-12
Generated
2026-06-13
AI Q&A
2026-06-13
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
kovidg kitty to 0.47.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-150 The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in the Kitty terminal software versions prior to 0.47.3. It involves the OSC 21 (color-control) query reply mechanism, which reflects attacker-controlled bytes, including newline characters, directly into the shell's input without proper sanitization.

Because the input is not sanitized, an attacker can inject malicious input into the shell, potentially leading to unintended command execution or other harmful effects.

The issue was fixed in version 0.47.3 of Kitty.

Impact Analysis

This vulnerability can allow an attacker to inject malicious input into the shell environment of the Kitty terminal, potentially leading to unauthorized command execution or manipulation of the terminal session.

Such an impact could compromise the security and integrity of the system where Kitty is running, especially if the attacker can control the input to the terminal.

Mitigation Strategies

To mitigate this vulnerability, upgrade kitty to version 0.47.3 or later, as this version fixes the issue with OSC 21 query reply reflecting attacker-controlled bytes into the shell's input without sanitization.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54057. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart