p PatchFirst

CVE-2026-33642

CVE-2026-33642 · Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check

CVSS 9.9 · Critical · 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+deb13u1
  • kitty Debian 14Update to 0.47.0-1
  • 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.

Kitty is a cross-platform GPU based terminal. In versions 0.46.2 and below, the handle_compose_command() function in kitty/graphics.c performs bounds validation on composition offsets using unsigned 32-bit arithmetic that is subject to integer wrapping, potentially leading to Heap Buffer Over-Read/Write. An attacker who can write escape sequences to a kitty terminal (e.g., via a malicious file, SSH login banner, or piped content) can supply crafted x_offset/y_offset values that pass the bounds check after wrapping but cause massive out-of-bounds heap memory access in compose_rectangles(). No user interaction is required. No non-default configuration is required. The attacker only needs the ability to produce output in a kitty terminal window. This issue has been fixed in version 0.47.0.

Published
Updated

Fixes in distributions

  • DLA-4928-1 · Debian 12 ·
  • openSUSE-SU-2026:21599-1 · openSUSE Leap 16.0 ·
  • USN-8442-1 · Ubuntu 25.10, Ubuntu Pro 20.04 LTS, Ubuntu Pro 22.04 LTS, Ubuntu Pro 24.04 LTS, Ubuntu Pro 26.04 LTS ·
  • DSA-6307-1 · Debian 13 ·

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
    Affected ranges
    • ECOSYSTEM: < 0.41.1-2+deb13u1

    Update to 0.41.1-2+deb13u1

  • 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 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
    Affected ranges
    • ECOSYSTEM: < 0.15.0-1ubuntu0.2+esm1

    Update to 0.15.0-1ubuntu0.2+esm1

  • 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
    Affected ranges
    • ECOSYSTEM: < 0.21.2-1ubuntu0.22.04.1+esm1

    Update to 0.21.2-1ubuntu0.22.04.1+esm1

  • 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 (11)
    • 0.32.2-1build3
    • 0.32.2-1ubuntu0.1
    • 0.32.2-1ubuntu0.2
    • 0.32.2-1ubuntu0.3
    • 0.32.2-1ubuntu0.4
    Affected ranges
    • ECOSYSTEM: < 0.32.2-1ubuntu0.4+esm1

    Update to 0.32.2-1ubuntu0.4+esm1

  • kitty Ubuntu 25.10

    Versions
    • 0.39.1-1
    • 0.41.1-2
    Affected ranges
    • ECOSYSTEM: < 0.41.1-2+deb13u1build0.25.10.1

    Update to 0.41.1-2+deb13u1build0.25.10.1

  • 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
    Affected ranges
    • ECOSYSTEM: < 0.45.0-1ubuntu0.1~esm1

    Update to 0.45.0-1ubuntu0.1~esm1

Original sources

Check your server →