{"id":"CVE-2026-33642","aliases":["CVE-2026-33642"],"related":[],"kind":"vulnerability","state":"published","title":"Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Kitty es un terminal multiplataforma basado en GPU. En las versiones 0.46.2 e inferiores, la función handle_compose_command() en kitty/graphics.c realiza validación de límites en los desplazamientos de composición utilizando aritmética de 32 bits sin signo que está sujeta a desbordamiento de enteros, lo que podría llevar a una lectura/escritura excesiva de búfer de pila. Un atacante que puede escribir secuencias de escape en un terminal kitty (por ejemplo, a través de un archivo malicioso, un banner de inicio de sesión SSH o contenido canalizado) puede proporcionar valores x_offset/y_offset manipulados que pasan la verificación de límites después del desbordamiento pero causan un acceso masivo a memoria de pila fuera de límites en compose_rectangles(). No se requiere interacción del usuario. No se requiere configuración no predeterminada. El atacante solo necesita la capacidad de producir salida en una ventana de terminal kitty. Este problema ha sido solucionado en la versión 0.47.0.","source":"nvd"}],"published":"2026-05-19T18:04:42.482Z","modified":"2026-07-24T09:10:00.153Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-125","CWE-190","CWE-787"],"affected":[{"ranges":[{"version":"< 0.47.0","status":"affected"}],"vendor":"kovidgoyal","product":"kitty","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.47.0"}],"vendor":"kovidgoyal","product":"kitty","cpe":"cpe:2.3:a:kovidgoyal:kitty:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/kovidgoyal/kitty/security/advisories/GHSA-qfgm-2c64-6x3x","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kovidgoyal/kitty/commit/e9661f0f3afb4e4dbffa509adfb3df3c9780ad34","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-19T19:12:56.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33642","url":"https://www.cve.org/CVERecord?id=CVE-2026-33642","licence":"CVE Terms of Use","modified":"2026-05-19T19:13:23.671Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33642","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33642","licence":"Public domain","modified":"2026-07-24T09:10:00.153Z"}],"updatedAt":"2026-11-25T22:59:21.993Z","epss":{"score":0.00286,"percentile":0.22739,"date":"2026-12-01T12:00:22.000Z"}}