Skip to main content
EPSS 0.3%top 77%

CVE-2026-26982: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in ghostty-org ghostty

0
Medium
Published: 03/10/2026 (03/10/2026, 07:42:00 UTC)
Source: CVE Database V5
Vendor/Project: ghostty-org
Product: ghostty

Description

Ghostty versions prior to 1.3.0 contain an OS command injection vulnerability due to improper neutralization of special control characters in pasted or dropped text. This allows an attacker to execute arbitrary commands by tricking a user into pasting or dragging malicious text containing control characters like Ctrl+C. The vulnerability requires user interaction and is difficult to detect because the malicious characters are invisible in most graphical environments. This issue has been fixed in Ghostty version 1.3.0.

CVSS v3.1

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Affected software

ghostty-org

ghostty

Affected versions
<1.3.0
GitHub Actionsmore threats →ai
ghostty-org/ghostty
pkg:github/ghostty-org/ghostty
Affected versions
<1.3.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 18:57:16 UTC

Technical Analysis

Ghostty, a cross-platform terminal emulator, improperly handles control characters such as 0x03 (Ctrl+C) in pasted or dropped text. This flaw allows an attacker to execute arbitrary OS commands in some shell environments by embedding these control characters in malicious text that a user is tricked into pasting or dragging into the application. The attack requires user interaction and is stealthy due to the invisibility of the control characters in most GUI environments. The vulnerability is identified as CWE-78 (OS Command Injection) and has a CVSS 3.1 base score of 6.3 (medium severity). It affects all versions prior to 1.3.0, where the issue has been fixed.

Potential Impact

An attacker can execute arbitrary OS commands in the context of the user running Ghostty by convincing the user to paste or drag malicious text containing special control characters. This can lead to limited confidentiality, integrity, and availability impacts as indicated by the CVSS vector (C:L/I:L/A:L). The attack requires user interaction and is not trivially detected due to invisible control characters.

Mitigation Recommendations

A fix is available in Ghostty version 1.3.0. Users and administrators should upgrade to version 1.3.0 or later to remediate this vulnerability. Until patched, users should avoid pasting or dragging untrusted text into Ghostty to reduce risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-17T01:41:24.605Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69af3955ea502d3aa8c59c7b

Added to database: 03/09/2026, 21:19:17 UTC

Last enriched: 08/06/2026, 18:57:16 UTC

Last updated: 09/13/2026, 10:01:30 UTC

Views: 215

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses