SecurityContext

CVE-2026-42851: Kitty - Command Injection

  • Cve: CVE-2026-42851
  • Name: Kitty - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary Python code with the user's privileges, potentially leading to full system compromise.
  • Remediation: Upgrade to version 0.47.0 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00164
  • Epss percentile: 0.0557
  • Assignee: [email protected]
  • Published at: 2026-06-12T20:16:45Z
  • Age in days: 165
  • Modified at: 2026-10-26T11:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-42851
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://github.com/kovidgoyal/kitty/security/advisories/GHSA-w98g-hpvr-r332nvd2026-06-12

References

UrlSourceTags
https://github.com/kovidgoyal/kitty/security/advisories/GHSA-w98g-hpvr-r332nvdExploit, Mitigation, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
kovidgoyal:kitty< 0.47.0nonvd/v1/products/kovidgoyal/kitty

Projects

RepositoryLink kindsIndexedUrl
kovidgoyal/kittysecurity_advisoryyes/v1/repositories/kovidgoyal/kitty

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-06-12
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts