CVE-2026-33642 Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
7 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/kitty(Debian 12) | = 0.26.5-5; = 0.30.1-1; = 0.31.0-1; = 0.31.0-2 +37 more | No fix listed | No fix yet |
| debian/kitty(Debian 13) | < 0.41.1-2+deb13u1; = 0.41.1-2 | 0.41.1-2+deb13u1 | Fixed |
| debian/kitty(Debian 14) | < 0.47.0-1; = 0.41.1-2; = 0.42.1-1; = 0.42.2-1 +6 more | 0.47.0-1 | Fixed |
| kovidgoyal kitty | < 0.47.0; = < 0.47.0 | 0.47.0 | Fixed |
| ubuntu/kitty(Ubuntu 22.04) | < 0.21.2-1ubuntu0.22.04.1+esm1 | 0.21.2-1ubuntu0.22.04.1+esm1 | Fixed |
| ubuntu/kitty(Ubuntu 24.04) | < 0.32.2-1ubuntu0.4+esm1 | 0.32.2-1ubuntu0.4+esm1 | Fixed |
| ubuntu/kitty(Ubuntu 26.04) | < 0.45.0-1ubuntu0.1~esm1 | 0.45.0-1ubuntu0.1~esm1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| kovidgoyal kitty | = < 0.47.0 | No fix listed |
| debian/kitty(Debian:12) | All versions | No fix listed |
| debian/kitty(Debian:12) | = 0.26.5-5 | No fix listed |
| debian/kitty(Debian:12) | = 0.30.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.31.0-4 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.32.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.33.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.33.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.34.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.35.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.35.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.36.4-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.37.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.38.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.39.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.39.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.40.0-1 | No fix listed |
Show 33 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/kitty(Debian:12) | = 0.41.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.42.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.42.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.43.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.44.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.45.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.45.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.46.1-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.46.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-2 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.0-3 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.3-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.47.4-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.48.2-1 | No fix listed |
| debian/kitty(Debian:12) | = 0.48.2-1.1 | No fix listed |
| debian/kitty(Debian:13) | < 0.41.1-2+deb13u1 | 0.41.1-2+deb13u1 |
| debian/kitty(Debian:13) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:14) | < 0.47.0-1 | 0.47.0-1 |
| debian/kitty(Debian:14) | = 0.41.1-2 | No fix listed |
| debian/kitty(Debian:14) | = 0.42.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.42.2-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.43.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.44.0-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.45.0-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.45.0-2 | No fix listed |
| debian/kitty(Debian:14) | = 0.46.1-1 | No fix listed |
| debian/kitty(Debian:14) | = 0.46.2-1 | No fix listed |
| ubuntu/kitty(Ubuntu:22.04) | < 0.21.2-1ubuntu0.22.04.1+esm1 | 0.21.2-1ubuntu0.22.04.1+esm1 |
| ubuntu/kitty(Ubuntu:24.04) | < 0.32.2-1ubuntu0.4+esm1 | 0.32.2-1ubuntu0.4+esm1 |
| ubuntu/kitty(Ubuntu:26.04) | < 0.45.0-1ubuntu0.1~esm1 | 0.45.0-1ubuntu0.1~esm1 |
| kovidgoyal kitty | < 0.47.0 | 0.47.0 |
References
- https://github.com/kovidgoyal/kitty/security/advisories/GHSA-qfgm-2c64-6x3x exploit mitigation vendor-advisory
- https://github.com/kovidgoyal/kitty/commit/e9661f0f3afb4e4dbffa509adfb3df3c9780ad34 patch
- Debian Security Tracker CVE-2026-33642 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8442-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking