CVE-2026-42850: Kitty has a shell command injection

Published Jun 12, 2026
·
Updated

Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, it is possible to inject commands within the subshell through kitty error. A special escape code will make kitty return an error, this error is not escaped and will be correctly echoed back to the terminal with CRLF, as such it will be run by the shell in use. To exploit this bug, the victim must use a netcat or a similar program to connect to the attacker, or else listening for someone to connect. Once this condition is set, an attacker could pwn the computer of the victim using a special kitty's escape code that will run a command in the shell in use. Version 04.7.0 fixes the issue.

Affected Software

2 affected components
Kovid Goyal kitty<0.47.0
Kovidgoyal Kitty<0.47.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade kitty to a version that resolves this vulnerability.

    Fixed in 04.7.0

Event History

Jun 12, 2026
CVE Published
via MITRE·07:59 PM
Data Sourced
via MITRE·07:59 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-42850?

CVE-2026-42850 has a high severity score of 7.4 according to the CVSS 4.0 metrics.

2

How do I fix CVE-2026-42850?

To resolve CVE-2026-42850, update your Kitty software to version 0.47.0 or later.

3

What is the risk associated with CVE-2026-42850?

The risk associated with CVE-2026-42850 is rated at 53, indicating a moderate to high level of risk.

4

What types of attacks can CVE-2026-42850 facilitate?

CVE-2026-42850 can facilitate shell command injection attacks due to improper error handling.

5

Which versions of Kitty are affected by CVE-2026-42850?

All versions of Kitty prior to 0.47.0 are affected by CVE-2026-42850.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203