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

- Severity: High 7.4 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-12T19:59:14.267Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- kovidgoyal kitty: < 0.47.0; before 0.47.0

## Every score

- GitHub_M: CVSS:4.0 7.4 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/kovidgoyal/kitty/security/advisories/GHSA-p64q-59hq-5q65> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-42850](https://www.cve.org/CVERecord?id=CVE-2026-42850), CVE Terms of Use, modified 2026-06-16
- NVD: [CVE-2026-42850](https://nvd.nist.gov/vuln/detail/CVE-2026-42850), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42850 · Whole record: https://cve.day/CVE-2026-42850.json · Rebuilt by cve.day 2026-11-25T22:59:24.564Z
