{"document":{"category":"csaf_vex","csaf_version":"2.0","title":"CVE-2026-42850: Kitty has a shell command injection","publisher":{"category":"vendor","name":"HarborGuard Database","namespace":"https://database.harborguard.co"},"tracking":{"id":"CVE-2026-42850","status":"final","version":"1","initial_release_date":"2026-06-12T19:59:14.267Z","current_release_date":"2026-06-12T19:59:14.267Z","revision_history":[{"date":"2026-06-12T19:59:14.267Z","number":"1","summary":"Initial machine-readable export from HarborGuard."}]},"distribution":{"tlp":{"label":"WHITE"},"text":"Public CVE data; freely redistributable."},"notes":[{"category":"description","text":"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.","title":"CVE description"}],"references":[{"category":"self","summary":"CVE-2026-42850 on HarborGuard Database","url":"https://database.harborguard.co/cve/CVE-2026-42850"},{"category":"external","summary":"CVE Record","url":"https://www.cve.org/CVERecord?id=CVE-2026-42850"},{"category":"external","summary":"https://github.com/kovidgoyal/kitty/security/advisories/GHSA-p64q-59hq-5q65","url":"https://github.com/kovidgoyal/kitty/security/advisories/GHSA-p64q-59hq-5q65"}]},"product_tree":{"branches":[{"category":"vendor","name":"kovidgoyal","branches":[{"category":"product_name","name":"kitty","branches":[{"category":"product_version","name":"< 0.47.0","product":{"name":"kovidgoyal kitty < 0.47.0","product_id":"CSAFPID-1","product_identification_helper":{"cpe":"cpe:2.3:a:kovidgoyal:kitty:\\<_0.47.0:*:*:*:*:*:*:*"}}}]}]}]},"vulnerabilities":[{"cve":"CVE-2026-42850","title":"Kitty has a shell command injection","notes":[{"category":"description","text":"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.","title":"CVE description"}],"product_status":{"known_affected":["CSAFPID-1"]},"scores":[{"cvss_v4":{"version":"4.0","vectorString":"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","baseScore":7.4,"baseSeverity":"HIGH"},"products":["CSAFPID-1"]}],"remediations":[{"category":"none_available","details":"No fixed version is published yet. Monitor the upstream advisory.","product_ids":["CSAFPID-1"]}]}]}