CVE-2026-33642: kovidgoyal kitty Out-of-bounds Read
Vulnerability summary
CVE-2026-33642 is a critical (CVSS 9.9) Out-of-bounds Read vulnerability in kovidgoyal kitty. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 36.5% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 19-05-2026PublishedVulnerability first disclosed.
- 19-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
+0.15 pp
From 0.29% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundKitty
Maturity: poc
Weaknesses
CWE · root cause- CWE-125Out-of-bounds ReadThe product reads data past the end, or before the beginning, of the intended buffer.
- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian1 product
- kittyAll versions (No fix recorded) | < 0.41.1-2+deb13u1 | < 0.47.0-1
Kovidgoyal1 product
- kitty< 0.47.0
Ubuntu1 product
- kitty< 0.15.0-1ubuntu0.2+esm1 | < 0.21.2-1ubuntu0.22.04.1+esm1 | < 0.32.2-1ubuntu0.4+esm1 | < 0.41.1-2+deb13u1build0.25.10.1 | < 0.45.0-1ubuntu0.1~esm1
3 vendors · 3 products
References
6 links- github.com/kovidgoyal/kitty/security/advisories/GHSA-qfgm-2c64-6x3xX Refsource CONFIRMREPORTExploitMitigationVendor Advisory
- github.com/kovidgoyal/kitty/commit/e9661f0f3afb4e4dbffa509adfb3df3c9780ad34X Refsource MISCREPORTPatch