RCE in Ghostty
CVE-2026-26982
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS: 0.005 (39.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 39.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.005 · change: +0.002
Affected products
- Ghostty
- Ghostty-Org Ghostty — versions < 1.3.0
Weakness classification (CWE)
References
- github.com/ghostty-org/ghostty/security/advisories/GHSA-4jxv-xgrp-5m3r (Patch, Vendor Advisory)
- github.com/ghostty-org/ghostty/pull/10746 (Patch, Issue Tracking)
- github.com/ghostty-org/ghostty/commit/fe7427ed2a1a02aef85495b384cfb8f11ee5efc9 (Patch)
Frequently asked questions
- What is CVE-2026-26982?
- CVE-2026-26982 is a medium-severity vulnerability in Ghostty, classified under OS Command Injection. CVSS score: 6.3/10. Published 2026-03-10.
- How severe is CVE-2026-26982?
- Medium severity. CVSS v3 base score is 6.3 out of 10.