CVE-2026-54057: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal kitty
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.
AI Analysis
Technical Summary
CVE-2026-54057 is a code injection vulnerability (CWE-94) in the kitty terminal emulator before version 0.47.3. The vulnerability occurs when the OSC 21 color-control query reply reflects attacker-controlled input, including newline characters, directly into the shell input without sanitization. This improper control of code generation can allow an attacker to inject arbitrary commands into the shell environment. The vulnerability is addressed by the update to version 0.47.3.
Potential Impact
An attacker able to influence the OSC 21 query reply can inject arbitrary commands into the shell input, potentially leading to code execution with the privileges of the user running kitty. The CVSS 4.0 score of 7.3 indicates a high severity, reflecting the potential for significant impact if exploited. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade kitty to version 0.47.3 or later, where this vulnerability is fixed. Since the vendor has released a fixed version, applying this official update is the recommended remediation. No other mitigations are specified.
CVE-2026-54057: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal kitty
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 v4.0
Score 7.3high
Affected software
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
Technical Analysis
CVE-2026-54057 is a code injection vulnerability (CWE-94) in the kitty terminal emulator before version 0.47.3. The vulnerability occurs when the OSC 21 color-control query reply reflects attacker-controlled input, including newline characters, directly into the shell input without sanitization. This improper control of code generation can allow an attacker to inject arbitrary commands into the shell environment. The vulnerability is addressed by the update to version 0.47.3.
Potential Impact
An attacker able to influence the OSC 21 query reply can inject arbitrary commands into the shell input, potentially leading to code execution with the privileges of the user running kitty. The CVSS 4.0 score of 7.3 indicates a high severity, reflecting the potential for significant impact if exploited. However, there are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade kitty to version 0.47.3 or later, where this vulnerability is fixed. Since the vendor has released a fixed version, applying this official update is the recommended remediation. No other mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T18:24:35.096Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2c758ce617e2d834c30b89
Added to database: 06/12/2026, 21:09:32 UTC
Last enriched: 06/19/2026, 22:14:53 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 72
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.
External Links
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.