Arbitrary Code Injection Affecting kitty package, versions <0.47.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.16% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-KITTY-17333850
  • published13 Jun 2026
  • disclosed12 Jun 2026

Introduced: 12 Jun 2026

CVE-2026-42851  (opens in a new tab)
CWE-94  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade Debian:unstable kitty to version 0.47.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream kitty package and not the kitty package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.