CVE-2026-54057: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal kitty
Kitty terminal versions prior to 0.47.3 contain a code injection vulnerability via the OSC 21 color-control query reply. This vulnerability allows attacker-controlled bytes, including newlines, to be reflected into the shell's input without sanitization. The issue is fixed in version 0.47.3.
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 arises because the OSC 21 (color-control) query reply reflects attacker-controlled bytes, including newline characters, directly into the shell input without proper sanitization. This improper control of code generation can lead to execution of arbitrary commands in the shell context. The vulnerability is addressed in kitty version 0.47.3.
Potential Impact
An attacker able to influence the OSC 21 query reply can inject arbitrary shell commands due to unsanitized input being reflected into the shell. This can lead to code execution within the context of the terminal user. The CVSS 4.0 score is 7.3 (high severity), indicating significant impact with local attack vector, low attack complexity, and partial user interaction required.
Mitigation Recommendations
Upgrade kitty to version 0.47.3 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is not explicitly confirmed by a vendor advisory but the description states version 0.47.3 fixes the issue.
CVE-2026-54057: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal kitty
Description
Kitty terminal versions prior to 0.47.3 contain a code injection vulnerability via the OSC 21 color-control query reply. This vulnerability allows attacker-controlled bytes, including newlines, to be reflected into the shell's input without sanitization. The issue is fixed in version 0.47.3.
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 arises because the OSC 21 (color-control) query reply reflects attacker-controlled bytes, including newline characters, directly into the shell input without proper sanitization. This improper control of code generation can lead to execution of arbitrary commands in the shell context. The vulnerability is addressed in kitty version 0.47.3.
Potential Impact
An attacker able to influence the OSC 21 query reply can inject arbitrary shell commands due to unsanitized input being reflected into the shell. This can lead to code execution within the context of the terminal user. The CVSS 4.0 score is 7.3 (high severity), indicating significant impact with local attack vector, low attack complexity, and partial user interaction required.
Mitigation Recommendations
Upgrade kitty to version 0.47.3 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Patch status is not explicitly confirmed by a vendor advisory but the description states version 0.47.3 fixes the issue.
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: 6/12/2026, 9:09:32 PM
Last enriched: 6/12/2026, 9:24:17 PM
Last updated: 6/12/2026, 10:22:07 PM
Views: 4
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.