Read the docs

Escape sequence injection in kitty choose-files preview

Priority MEDIUM 55CWE-150Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Kitty by kovidgoyal from 0.43.0 before 0.51.0 writes unsanitized terminal escape sequences from file and archive member names raw into the choose-files preview panel (CWE-150). A local attacker who crafts such a name needs a victim to highlight it, and the escape sequences can overwrite the clipboard through OSC 52, add OSC 8 links, change the window title or spoof the screen.

Written with Claude Haiku 5.5 from the sources below · 2026-11-28

Description from the CNA

Kitty 0.43.0 before 0.51.0 contains a terminal escape sequence injection vulnerability that allows attackers to emit escape sequences by crafting malicious file or archive member names. When a victim highlights such an entry in the choose-files kitten preview panel, unsanitized names are written raw, enabling OSC 52 clipboard overwrites, OSC 8 links, window title changes, or screen spoofing.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00184 4th percentileScored 2026-11-30
Fix Fixed kitty (kovidgoyal): 0.51.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
kovidgoyalkitty0.43.0 to before 0.51.00.51.0Patch availableCNA
  • kitty Vendorkovidgoyal Affected 0.43.0 to before 0.51.0 Fixed in 0.51.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:kovidgoyal:kitty:*:*:*:*:*:*:*:*——kovidgoyal
  • cpe:2.3:a:kovidgoyal:kitty:*:*:*:*:*:*:*:* Versions — — ·kovidgoyal

Remediation

Upgrade kitty to version 0.51.0, which fixes this flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-28

  • Fix · CNA kitty (kovidgoyal) Fixed in 0.51.0

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-22 Threatist record created from CVE-2026-134823
  2. 2026-11-23 Alias added: GHSA-v4xv-86fx-r4r4
  3. 2026-11-26 Affected versions changed · Red Hat
  4. 2026-11-26 CVSS score added · Red Hat
  5. 2026-11-28 CISA SSVC decision points changed

References

  • TI-2026-26023 Kitty has a Heap Buffer Over-Read/Write via Integer Overflow in compose_rectangles Bounds Check CVSS 3.1CRITICAL 9.9
  • TI-2026-51129 Kitty: Command injection into the child shell via chained @kitty-echo + @kitty-ssh DCS escape sequences CVSS 4.0HIGH 7.3
  • TI-2026-26014 Kitty has a Heap Buffer Overflow in its Graphics Protocol Handler CVSS 3.1HIGH 8.8
  • TI-2026-51386 Missing authorization in kovidgoyal calibre CVSS 3.1HIGH 7.5
  • TI-2026-51385 calibre: Bypass of Python template restrictions via nested `template()` leading to RCE CVSS 4.0HIGH 8.5
  • TI-2026-38585 calibre: Arbitrary Code Execution in Template Formatter via Book Metadata CVSS 4.0HIGH 8.5
See all 30 →

Sources