CVE-2026-33642: Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check

Published May 19, 2026
·
Updated

Kitty is a cross-platform GPU based terminal. In versions 0.46.2 and below, the handlecomposecommand() 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 xoffset/yoffset values that pass the bounds check after wrapping but cause massive out-of-bounds heap memory access in composerectangles(). 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.

Affected Software

3 affected componentsFixes available
Kitty Kitty<=0.46.2
Kovidgoyal Kitty<0.47.0
debian/kitty<=0.26.5-5, <=0.41.1-2
0.19.3-10.19.3-1+deb11u10.41.1-2+deb13u10.47.3-10.47.4-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/kitty to a version that resolves this vulnerability.

    Fixed in 0.19.3-1Fixed in 0.19.3-1+deb11u1Fixed in 0.41.1-2+deb13u1Fixed in 0.47.3-1Fixed in 0.47.4-1
  2. Upgrade

    Upgrade kitty to a version that resolves this vulnerability.

    Fixed in 0.47.0

Event History

May 19, 2026
CVE Published
via MITRE·06:04 PM
Data Sourced
via MITRE·06:04 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 17, 2026
Data Sourced
via Launchpad·05:45 PM
Description
Jun 20, 2026
Data Sourced
via Ubuntu·05:46 PM
RemedyDescriptionSeverityAffected Software
Jun 21, 2026
Data Sourced
via Debian·05:47 PM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-33642?

CVE-2026-33642 is classified as a high severity vulnerability due to potential exploitation leading to arbitrary code execution.

2

How do I fix CVE-2026-33642?

To fix CVE-2026-33642, upgrade to version 0.46.3 or later of Kitty which includes the necessary patch.

3

What types of systems are affected by CVE-2026-33642?

CVE-2026-33642 affects Kitty versions 0.46.2 and below across all supported platforms.

4

What is the exploitation impact of CVE-2026-33642?

Exploiting CVE-2026-33642 could allow attackers to read or write beyond the intended memory bounds, potentially resulting in data corruption or execution of malicious code.

5

How can I determine if my version of Kitty is vulnerable to CVE-2026-33642?

You can determine if your version of Kitty is vulnerable to CVE-2026-33642 by checking if it is version 0.46.2 or earlier.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203