Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-54057: CWE-94: Improper Control of Generation of Code ('Code Injection') in kovidgoyal kitty

0
High
VulnerabilityCVE-2026-54057cvecve-2026-54057cwe-94cwe-150
Published: Fri Jun 12 2026 (06/12/2026, 20:07:00 UTC)
Source: CVE Database V5
Vendor/Project: kovidgoyal
Product: 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

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

Affected software

GitHub Actionsmore threats →ai
kovidgoyal/kitty
pkg:github/kovidgoyal/kitty
Affected versions
<0.47.3

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: 06/12/2026, 21:24:17 UTC

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.

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
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 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