CVE-2026-26982

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

Published Mar 9, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ghostty
Ghostty ghostty
CPEs cpe:2.3:a:ghostty:ghostty:*:*:*:*:*:*:*:*
Vendors & Products Ghostty
Ghostty ghostty
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ghostty-org
Ghostty-org ghostty
Vendors & Products Ghostty-org
Ghostty-org ghostty
Type Values Removed Values Added
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.
Title Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 10, 2026, 3:03 PM
Reserved
Feb 17, 2026, 1:41 AM
Status
Analyzed
Published
Mar 10, 2026, 7:42 AM
Modified
Jun 17, 2026, 10:26 AM