High severity · published Mar 9, 2026
CVE-2026-26982
Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
8.8
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 25% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GH
ghostty · ghostty-org
< 1.3.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-26982
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-26982
Patch
https://github.com/ghostty-org/ghostty/commit/fe7427ed2a1a02aef85495b384cfb8f11ee5efc9
Issue Tracking
https://github.com/ghostty-org/ghostty/pull/10746
Patch
https://github.com/ghostty-org/ghostty/security/advisories/GHSA-4jxv-xgrp-5m3r
More from ghostty
5.1
CVE-2024-56803
Ghostty improperly handles window title sequences which can lead to arbitrary command execution
