CVE-2026-42851: kovidgoyal kitty Code Injection
Vulnerability summary
CVE-2026-42851 is a high (CVSS 7.8) Code Injection vulnerability in kovidgoyal kitty. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8.6% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 12-06-2026PublishedVulnerability first disclosed.
- 16-06-2026Last modifiedVulnerability information updated.
Description
Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, a program able to write bytes to a kitty terminal — a remote SSH peer, a downloaded file viewed with `cat`, a log line, an email body rendered in `less`, an issue body in a TUI, etc. — can cause kitty to execute attacker-supplied Python inside the running kitty process, with the user's full privileges. There is no approval prompt, no remote-control permission requirement, no shell-integration interaction, no clipboard touch, and no editor interaction. Version 0.47.0 fixes the issue.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
9%
Versus all other CVEs
30-day change
+0.03 pp
From 0.16% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundKitty
Maturity: poc
Weaknesses
CWE · root cause- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- CWE-862Missing AuthorizationThe product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Affected systems
Debian1 product
- kittyAll versions (No fix recorded) | < 0.41.1-2+deb13u2 | < 0.47.0-1
Kovidgoyal1 product
- kitty< 0.47.0
Ubuntu1 product
- kitty< 0.32.2-1ubuntu0.4+esm2 | All versions (No fix recorded) | < 0.45.0-1ubuntu0.1~esm2
3 vendors · 3 products
References
5 links- github.com/kovidgoyal/kitty/security/advisories/GHSA-w98g-hpvr-r332X Refsource CONFIRMREPORTExploitMitigationVendor Advisory