p PatchFirst

CVE-2026-95832

CVE-2026-95832 · Reflected unknown field names in the kitty colour control escape code allow command execution in the user's shell

CVSS 9.3 · Critical · EPSS 0.2% · Fix available

Compare with your installed version

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

  • kittyUpdate to 0.49.0
  • kitty Debian 12No fix published
  • kitty Debian 13No fix published
  • kitty Debian 14No fix published
  • and 5 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.

Improper Neutralization of Special Elements in Output Used by a Downstream Component in the colour control escape code handler in kitty from 0.47.3 before 0.49.0 allows a program writing to the terminal to execute an arbitrary command in the user's shell, because color_control() in kitty/window.py answers a query for an unrecognised field name by placing that field name into the reply, and write_escape_code_to_child() in kitty/screen.c then writes the reply to the pseudoterminal master, where it is not distinguishable from input typed by the user, without neutralising it for the shell that reads it. The payload is reduced to printable ASCII before the field name is echoed, which is the restriction introduced in 0.47.3 as the fix for CVE-2026-54057, and the record and field separators ; and = are consumed as delimiters, but every other printable character survives, which is sufficient to compose a shell command. A newline is available from handle_remote_ssh() in kitty/window.py, which writes the bytes yielded by get_ssh_data() in kittens/ssh/utils.py, the first of which begin with a newline, to the pseudoterminal master before any credential carried in the request is checked. The reply is framed as an OSC sequence carrying the escape code number, the field name, and the literal value ?. This results in execution of an attacker-chosen command with the privileges of the user running the terminal.

Published
Updated

Stack: system

Affected products and versions

  • kitty

    Versions
    • ≥ 0.47.3, < 0.49.0: Affected (semver)

    Update to 0.49.0

  • kitty Debian 12

    Versions
    • 0.26.5-5
    • 0.30.1-1
    • 0.31.0-1
    • 0.31.0-2
    • 0.31.0-3
    • 0.31.0-4
    All versions (40)
    • 0.32.0-1
    • 0.32.1-1
    • 0.32.2-1
    • 0.33.0-2
    • 0.33.1-1
    • 0.34.1-1
    • 0.35.1-1
    • 0.35.2-1
    • 0.36.1-1
    • 0.36.4-1
    • 0.36.4-2
    • 0.36.4-3
    • 0.37.0-1
    • 0.38.1-1
    • 0.39.0-1
    • 0.39.1-1
    • 0.40.0-1
    • 0.41.1-1
    • 0.41.1-2
    • 0.42.1-1
    • 0.42.2-1
    • 0.43.1-1
    • 0.44.0-1
    • 0.45.0-1
    • 0.45.0-2
    • 0.46.1-1
    • 0.46.2-1
    • 0.47.0-1
    • 0.47.0-2
    • 0.47.0-3
    • 0.47.3-1
    • 0.47.4-1
    • 0.48.2-1
    • 0.48.2-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • kitty Debian 13

    Versions
    • 0.41.1-2
    • 0.41.1-2+deb13u1
    • 0.41.1-2+deb13u2
    • 0.42.1-1
    • 0.42.2-1
    • 0.43.1-1
    All versions (18)
    • 0.44.0-1
    • 0.45.0-1
    • 0.45.0-2
    • 0.46.1-1
    • 0.46.2-1
    • 0.47.0-1
    • 0.47.0-2
    • 0.47.0-3
    • 0.47.3-1
    • 0.47.4-1
    • 0.48.2-1
    • 0.48.2-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • 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 (16)
    • 0.45.0-2
    • 0.46.1-1
    • 0.46.2-1
    • 0.47.0-1
    • 0.47.0-2
    • 0.47.0-3
    • 0.47.3-1
    • 0.47.4-1
    • 0.48.2-1
    • 0.48.2-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • kitty Ubuntu Pro 20.04 LTS

    Versions
    • 0.14.3-1
    • 0.14.4-1
    • 0.14.6-1
    • 0.15.0-1
    • 0.15.0-1build1
    • 0.15.0-1ubuntu0.2
    All versions (7)
    • 0.15.0-1ubuntu0.2+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • kitty Ubuntu Pro 22.04 LTS

    Versions
    • 0.19.3-1
    • 0.21.2-1
    • 0.21.2-1build1
    • 0.21.2-1ubuntu0.22.04.1
    • 0.21.2-1ubuntu0.22.04.1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • 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 (13)
    • 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
    • 0.32.2-1ubuntu0.4+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • kitty Ubuntu 26.10

    Versions
    • 0.45.0-1build1
    • 0.47.0-3
    • 0.47.4-1
    • 0.48.2-1.1ubuntu1
    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
    All versions (7)
    • 0.45.0-1ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →