CVE-2026-33642
published critical CVSS 3.1 · 9.9Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| kovidgoyal | — | kitty< 0.47.0 | Affected | Not stated | GitHub_M |
| Debian | bookworm | kitty | Advisory build | 0.26.5-5+deb12u1 | DLA-4928-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kittyaarch64 | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| Ubuntu | focal | kitty | Advisory build | 0.15.0-1ubuntu0.2+esm1 | USN-8442-1 |
| Debian | trixie | kitty | Advisory build | 0.41.1-2+deb13u1 | DSA-6307-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kittyppc64le | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kittys390x | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kittyx86_64 | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
Show 16 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | jammy | kitty | Advisory build | 0.21.2-1ubuntu0.22.04.1+esm1 | USN-8442-1 |
| Ubuntu | noble | kitty | Advisory build | 0.32.2-1ubuntu0.4+esm1 | USN-8442-1 |
| Ubuntu | questing | kitty | Advisory build | 0.41.1-2+deb13u1build0.25.10.1 | USN-8442-1 |
| Ubuntu | resolute | kitty | Advisory build | 0.45.0-1ubuntu0.1~esm1 | USN-8442-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kitty-shell-integrationaarch64 | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kitty-shell-integrationppc64le | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kitty-shell-integrations390x | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kitty-shell-integrationx86_64 | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | kitty-terminfonoarch | Advisory build | 0.48.2-bp160.1.1 | OPENSUSE-SU-2026:21599-1 |
| Ubuntu | focal | kitty-terminfo | Advisory build | 0.15.0-1ubuntu0.2+esm1 | USN-8442-1 |
| Ubuntu | noble | kitty-shell-integration | Advisory build | 0.32.2-1ubuntu0.4+esm1 | USN-8442-1 |
| Ubuntu | noble | kitty-terminfo | Advisory build | 0.32.2-1ubuntu0.4+esm1 | USN-8442-1 |
| Ubuntu | questing | kitty-shell-integration | Advisory build | 0.41.1-2+deb13u1build0.25.10.1 | USN-8442-1 |
| Ubuntu | questing | kitty-terminfo | Advisory build | 0.41.1-2+deb13u1build0.25.10.1 | USN-8442-1 |
| Ubuntu | resolute | kitty-shell-integration | Advisory build | 0.45.0-1ubuntu0.1~esm1 | USN-8442-1 |
| Ubuntu | resolute | kitty-terminfo | Advisory build | 0.45.0-1ubuntu0.1~esm1 | USN-8442-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| kovidgoyal | kitty | < 0.47.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-190 CWE-190: Integer Overflow or Wraparound
- CWE-787 CWE-787: Out-of-bounds Write
- CWE-125 CWE-125: Out-of-bounds Read
References
2Provider assertions
2GitHub_M · cna
Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 37531626410d3043b6f3e598f02252966856b03588573d4148f183ee1591b3dd
- Ingested
- 23 Sep 2026, 09:10:36 UTC
- Source record
- Official CVE record