Skip to content
OpenAdvisories
Medium · 6.3 CVE-2026-26982 EUVD-2026-10363

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

Published Mar 9, 2026 · Updated Mar 10, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
ghostty-org ghostty < 1.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 ghostty No fix yet —
Ubuntu 26.04 LTS ghostty No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ghostty 1.3.0-1.1 openSUSE-SU-2026:10316-1

Advisories 1

References