{"id":"DEBIAN-CVE-2026-33642","details":"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.","modified":"2026-09-14T17:03:07.902727778Z","published":"2026-05-19T19:16:49.293Z","upstream":["CVE-2026-33642"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-33642"}],"affected":[{"package":{"name":"kitty","ecosystem":"Debian:12","purl":"pkg:deb/debian/kitty?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.26.5-5","0.30.1-1","0.31.0-1","0.31.0-2","0.31.0-3","0.31.0-4","0.32.0-1","0.32.1-1","0.32.2-1","0.33.0-2","0.33.1-1","0.34.1-1","0.35.1-1","0.35.2-1","0.36.1-1","0.36.4-1","0.36.4-2","0.36.4-3","0.37.0-1","0.38.1-1","0.39.0-1","0.39.1-1","0.40.0-1","0.41.1-1","0.41.1-2","0.42.1-1","0.42.2-1","0.43.1-1","0.44.0-1","0.45.0-1","0.45.0-2","0.46.1-1","0.46.2-1","0.47.0-1","0.47.0-2","0.47.0-3","0.47.3-1","0.47.4-1","0.48.2-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-33642.json"}},{"package":{"name":"kitty","ecosystem":"Debian:13","purl":"pkg:deb/debian/kitty?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.41.1-2+deb13u1"}]}],"versions":["0.41.1-2"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-33642.json"}},{"package":{"name":"kitty","ecosystem":"Debian:14","purl":"pkg:deb/debian/kitty?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.47.0-1"}]}],"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","0.45.0-2","0.46.1-1","0.46.2-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-33642.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}