What’s Vulnerable › Vulnerabilities
CVE-2026-26982: Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-10 · updated 2026-06-17
- Weakness: CWE-78
Description
Ghostty is a cross-platform terminal emulator. Ghostty allows control characters such as 0x03 (Ctrl+C) in pasted and dropped text. These can be used to execute arbitrary commands in some shell environments. This attack requires an attacker to convince the user to copy and paste or drag and drop malicious text. The attack requires user interaction to be triggered, but the dangerous characters are invisible in most GUI environments so it isn't trivially detected, especially if the string contents are complex. Fixed in Ghostty v1.3.0.
Affected products
- ghostty-org ghostty: before 1.3.0 — fixed in 1.3.0
How to fix
Upgrade to a fixed version: ghostty-org ghostty 1.3.0. Check the vendor advisory for mitigations.
References
- https://github.com/ghostty-org/ghostty/commit/fe7427ed2a1a02aef85495b384cfb8f11ee5efc9
- https://github.com/ghostty-org/ghostty/pull/10746
- https://github.com/ghostty-org/ghostty/security/advisories/GHSA-4jxv-xgrp-5m3r
Get alerted when CVE-2026-26982 or the next vulnerability affects your stack