Vulnerability in Ghostty Terminal Emulator Allows Command Execution via Malicious Text
CVE-2026-26982
6.3MEDIUM
What is CVE-2026-26982?
Ghostty, a cross-platform terminal emulator, is susceptible to a command injection vulnerability that arises from its handling of control characters in pasted or dragged-and-dropped text. This vulnerability allows attackers to execute arbitrary commands in certain shell environments, posing a significant risk if users are manipulated into pasting malicious content. The exploit requires user interaction, making detection difficult, particularly in GUI environments where the harmful characters remain hidden within complex string data. The issue has been addressed in Ghostty version 1.3.0.
Affected Version(s)
ghostty < 1.3.0
