p PatchFirst

CVE-2026-54055

CVE-2026-54055 · Kitty has an Arbitrary File Write via Symlink Race Condition in File Transmission Protocol

CVSS 5.0 · Medium · EPSS 0.1% · 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.3-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.2, a local privilege escalation vulnerability exists in kitty's file transmission protocol where a child process running in the terminal can write to arbitrary files on the filesystem by exploiting a TOCTOU (Time-of-Check-Time-of-Use) race condition between symlink validation and file creation. The `os.open()` call used to create files does not use `O_NOFOLLOW`, allowing an attacker to create a symlink between the initial stat check and the actual file open, causing the write to follow the symlink to an arbitrary destination. Version 0.47.2 fixes the issue.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • kitty

    Versions
    • < 0.47.2: 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 (12)
    • 0.45.0-2
    • 0.46.1-1
    • 0.46.2-1
    • 0.47.0-1
    • 0.47.0-2
    • 0.47.0-3
    Affected ranges
    • ECOSYSTEM: < 0.47.3-1

    Update to 0.47.3-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 →