CVE-2026-26982CWE-78

Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations

Medium · published March 9, 2026

CVSS v3.1
6.3
EPSS
1%
Percentile
42.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
CVSS v4.0
Not supplied
EPSS
0.00505 · 42.2th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2026-03-09T21:14Z
EPSS history
Timeline
  • 09 MAR 21:14Z
    Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
    cvelistv5