A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33642

CVE-2026-33642: Kitty Terminal Buffer Overflow Vulnerability

CVE-2026-33642 is a buffer overflow vulnerability in Kitty GPU-based terminal that enables heap memory corruption via malicious escape sequences. This article covers technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-33642 Overview

CVE-2026-33642 is a critical vulnerability in the Kitty cross-platform GPU-based terminal emulator. The flaw resides in the handle_compose_command() function in kitty/graphics.c, where bounds validation on composition offsets uses unsigned 32-bit arithmetic susceptible to integer wrapping. Crafted x_offset and y_offset values pass the bounds check after wrapping but trigger out-of-bounds heap access inside compose_rectangles(). The vulnerability affects Kitty versions 0.46.2 and below and was fixed in version 0.47.0. Attackers exploit the flaw by writing escape sequences to a Kitty terminal through malicious files, SSH login banners, or piped content. No user interaction or non-default configuration is required.

Critical Impact

Remote attackers can trigger heap buffer over-read or over-write conditions by producing terminal output, leading to memory corruption or information disclosure without user interaction.

Affected Products

  • Kitty terminal versions 0.46.2 and below
  • Fixed in Kitty version 0.47.0
  • All platforms supported by Kitty (Linux, macOS)

Discovery Timeline

  • 2026-05-19 - CVE-2026-33642 published to NVD
  • 2026-05-19 - Last updated in NVD database

Technical Details for CVE-2026-33642

Vulnerability Analysis

The vulnerability stems from improper integer arithmetic during graphics composition handling in Kitty. The handle_compose_command() function validates user-supplied composition offsets using unsigned 32-bit math. When attacker-controlled values produce arithmetic that exceeds the 32-bit boundary, the result wraps around to a small value. The wrapped value passes subsequent bounds checks designed to confirm the offsets fall within allocated image dimensions.

Once validation succeeds, compose_rectangles() performs memory operations using the original, unwrapped offsets. This mismatch produces large out-of-bounds reads or writes against the heap region storing image data. The CWE-125 classification (Out-of-Bounds Read) reflects the primary impact, though the advisory confirms both over-read and over-write conditions are reachable.

Root Cause

The root cause is an integer wrapping flaw in unsigned 32-bit arithmetic used for bounds validation. The validation logic and the consuming code path interpret the offset values inconsistently, allowing values to be sanitized in one path while remaining dangerous in another. This is a classic Time-of-Check to Time-of-Use mismatch driven by arithmetic overflow.

Attack Vector

Attackers deliver crafted Kitty graphics protocol escape sequences to a victim terminal. Common delivery channels include malicious files displayed with cat, SSH login banners, log output piped to the terminal, and content rendered by command-line tools. The attack requires only that the Kitty terminal renders the malicious output. No clicks, prompts, or configuration changes are required on the victim system.

No verified public proof-of-concept code is available. The technical fix is documented in the Kitty GitHub commit and the Kitty Security Advisory GHSA-qfgm-2c64-6x3x.

Detection Methods for CVE-2026-33642

Indicators of Compromise

  • Unexpected Kitty terminal crashes, segmentation faults, or abnormal terminations during file display or remote session activity
  • Graphics protocol escape sequences (\\x1b_G prefixed payloads) appearing in untrusted files, logs, or SSH banners
  • Kitty process generating core dumps shortly after rendering output from untrusted sources

Detection Strategies

  • Inspect file content and network streams for Kitty graphics protocol sequences containing unusually large x or y offset parameters
  • Monitor endpoint telemetry for Kitty process crashes correlated with shell sessions reading attacker-supplied content
  • Audit version inventory of installed Kitty packages to identify hosts running 0.46.2 or earlier

Monitoring Recommendations

  • Capture process crash events for kitty binaries and forward to a central log store for correlation
  • Track SSH banner content and MOTD modifications on managed servers to detect injection of graphics escape sequences
  • Alert on file downloads followed by terminal-related crash signatures in close time proximity

How to Mitigate CVE-2026-33642

Immediate Actions Required

  • Upgrade Kitty to version 0.47.0 or later on all affected workstations and servers
  • Inventory all systems running Kitty 0.46.2 or below and prioritize developer and administrator endpoints
  • Restrict rendering of untrusted files and remote banners until patching is complete

Patch Information

The maintainer fixed the issue in Kitty version 0.47.0. The corrected arithmetic and bounds handling are documented in the upstream commit e9661f0. Distribution package maintainers should backport the fix or ship the upstream 0.47.0 release.

Workarounds

  • Pipe untrusted output through cat -v or less configured to strip escape sequences before displaying in Kitty
  • Disable graphics protocol rendering where feasible by avoiding cat of untrusted binary files in Kitty windows
  • Configure SSH servers to sanitize or remove banner content sourced from user-writable locations
bash
# Verify installed Kitty version and upgrade
kitty --version

# Example upgrade paths
# Arch Linux
sudo pacman -Syu kitty

# Homebrew (macOS)
brew upgrade kitty

# Manual install via official installer
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechKitty

  • SeverityCRITICAL

  • CVSS Score9.9

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Commit Change

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33633: Kitty Terminal DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English