p PatchFirst

CVE-2026-42850

CVE-2026-42850 · Kitty has a shell command injection

CVSS 7.4 · High · EPSS 0.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

  • kittyNo fix published
  • kitty Debian 12Update to 0.26.5-5+deb12u1
  • kitty Debian 13Update to 0.41.1-2+deb13u2
  • kitty Debian 14Update to 0.47.0-1
  • and 3 more

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="kitty"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • kitty

    Versions
    • < 0.47.0: Affected

    No fix published

  • kitty Debian 12

    Versions
    • 0.26.5-5
    Affected ranges
    • ECOSYSTEM: < 0.26.5-5+deb12u1

    Update to 0.26.5-5+deb12u1

  • kitty Debian 13

    Versions
    • 0.41.1-2
    • 0.41.1-2+deb13u1
    Affected ranges
    • ECOSYSTEM: < 0.41.1-2+deb13u2

    Update to 0.41.1-2+deb13u2

  • kitty Debian 14

    Versions
    • 0.41.1-2
    • 0.42.1-1
    • 0.42.2-1
    • 0.43.1-1
    • 0.44.0-1
    • 0.45.0-1
    All versions (9)
    • 0.45.0-2
    • 0.46.1-1
    • 0.46.2-1
    Affected ranges
    • ECOSYSTEM: < 0.47.0-1

    Update to 0.47.0-1

  • kitty Ubuntu Pro 24.04 LTS

    Versions
    • 0.26.5-3ubuntu2
    • 0.26.5-5ubuntu1
    • 0.31.0-3
    • 0.31.0-4
    • 0.32.2-1
    • 0.32.2-1build2
    All versions (12)
    • 0.32.2-1build3
    • 0.32.2-1ubuntu0.1
    • 0.32.2-1ubuntu0.2
    • 0.32.2-1ubuntu0.3
    • 0.32.2-1ubuntu0.4
    • 0.32.2-1ubuntu0.4+esm1
    Affected ranges
    • ECOSYSTEM: < 0.32.2-1ubuntu0.4+esm2

    Update to 0.32.2-1ubuntu0.4+esm2

  • kitty Ubuntu 25.10

    Versions
    • 0.39.1-1
    • 0.41.1-2
    • 0.41.1-2+deb13u1build0.25.10.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • kitty Ubuntu Pro 26.04 LTS

    Versions
    • 0.41.1-2
    • 0.43.1-1
    • 0.44.0-1
    • 0.45.0-1
    • 0.45.0-1build1
    • 0.45.0-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: < 0.45.0-1ubuntu0.1~esm2

    Update to 0.45.0-1ubuntu0.1~esm2

Original sources

Check your server →