Skip to main content

Ghostty CVE-2026-136950

| EUVDEUVD-2026-136050 MEDIUM
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (CWE-74)
2026-11-26 VulDB
5.3
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control victim terminal output
  2. Delivery
    Emit crafted OSC 8 hyperlink with concealed target
  3. Exploit
    Victim Command-clicks link
  4. Execution
    Ghostty passes target to Launch Services
  5. Impact
    Malicious file/URL handler executes as user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Input neutralization, injection prevention
Exploitation Conditions

Exploitation is limited to macOS and requires all of: (1) the attacker controls text rendered in the victim's Ghostty terminal so they can emit an OSC 8 hyperlink; (2) the victim actively Command-clicks that hyperlink (merely displaying the escape sequence does not open anything); and (3) for code execution specifically, a malicious file must already exist at a known local path or a dangerous custom URL-scheme handler must be registered. Limiting factors: affects only Ghostty <= 1.3.1 on macOS, needs user interaction (Command-click), and the most severe outcome depends on the attacker also staging a reachable malicious file or abusable URL handler; there is no pre-1.4.0 config option to disable only OSC 8 hyperlinks, so the workaround is to avoid Command-clicking untrusted hyperlinks and not trust the hover preview.

Impact

This is a moderate, user-interaction-dependent issue rather than a drop-everything emergency. The input CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) scores 5.3 and reports Low impact to confidentiality, integrity and availability, but the GHSA advisory shows the practical worst case is arbitrary command execution with the user's privileges - a more severe outcome than the Low VC/VI/VA metrics suggest, gated by several preconditions. The vector lists PR:N (so unauthenticated in CVSS terms) yet exploitation is not a passive drive-by: the attacker must control terminal output AND the victim must Command-click a crafted OSC 8 hyperlink; rendering the escape sequence alone does nothing. No EPSS score, KEV listing, or working exploit was provided; the references are the vendor advisory and patch commit only. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-available, interaction-gated flaw. Net: real and worth patching on a normal cycle, but not evidence of widespread or automatable exploitation. Note a signal nuance: the input CVSS marks UI:P (passive), while the advisory describes an explicit Command-click, which is closer to active interaction - verify the interaction metric with the vendor.

Exploit ScenarioDerived

An attacker who can influence text rendered in a victim's Ghostty terminal (for example via a crafted log line, SSH banner, cat'd file, or command output) emits an OSC 8 hyperlink whose target points to a malicious local script, application bundle, installer package, or a dangerous custom URL-scheme handler. The attacker uses Unicode control/formatting characters so the hover preview conceals the true destination, then relies on social engineering to get the user to Command-click it, at which point Ghostty hands the target to NSWorkspace/Launch Services and code runs with the user's privileges. No public exploit was identified at time of analysis; only the vendor security advisory and patch are referenced.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Ghostty 1.3.1 and earlier on macOS pass OSC 8 hyperlink targets - attacker-controlled terminal output - directly to NSWorkspace/Launch Services when a user Command-clicks them, so a crafted link can open unsafe local files (scripts, executables, app bundles, installer packages, terminal profiles, workflows) or invoke arbitrary registered custom URL schemes. The worst outcome, command execution with the user's privileges, additionally requires that the attacker can stage a malicious file at a known path or that a dangerous URL handler is registered, and it always requires the victim to Command-click; merely rendering the escape sequence opens nothing. Severity is moderate (CVSS 4.0 base 5.3 per the CVE record; independent assessment scores the interaction-heavy path lower on exploitability), no public exploit code was identified at time of analysis, and patched builds were released in Ghostty 1.4.0.

RemediationAI

Vendor-released patch: Ghostty 1.4.0 - upgrade macOS installations from any version <= 1.3.1 to 1.4.0 (release tag https://github.com/ghostty-org/ghostty/releases/tag/v1.4.0, fix commit 54fe8e188552977249a084db687e75aee6bf12e9, advisory GHSA-cw69-wm67-5pv8). For hosts that cannot upgrade immediately, the vendor states there is no configuration option in versions before 1.4.0 that disables only OSC 8 hyperlinks, so the only effective control is procedural: do not Command-click OSC 8 hyperlinks that originate from untrusted terminal output, and do not rely on the hover preview to judge a link, since affected builds may render control and formatting characters deceptively. Once on 1.4.0, the same release provides the link-osc8 configuration option to disable OSC 8 hyperlinks entirely, with the trade-off that legitimate clickable links in terminal output stop working; the new safe-opening policy (validation of web/email URLs, confirmation prompts for custom schemes, blocking of executable local files, sanitized preview text) is applied by default and requires no user action.

Affected VersionsENISA

ghostty 1.3.1
ghostty 1.3.0

Affected Packages

euvd ghostty no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

OSC 8 is a terminal escape sequence that lets a program attach a clickable hyperlink target to displayed text; the terminal emulator is expected to treat that target as untrusted producer-controlled input. In Ghostty <= 1.3.1 on macOS, the OSC 8 path was routed through the same generic URL opener used for other links, so the raw target string reached AppKit's NSWorkspace and was dispatched by Launch Services with no scheme or content restrictions. That is the injection class behind CWE-74: an attacker who controls text rendered in the victim's terminal can embed a target that the OS interprets as an instruction - a file:// path to an executable, application bundle, .pkg or .workflow, or an arbitrary custom scheme bound to a dangerous handler. A secondary defect compounded the deception: the hover preview rendered the target verbatim, so Unicode control, zero-width, bidirectional-override and line-breaking characters could conceal or visually reorder the real destination. The upstream fix (commit 54fe8e188552977249a084db687e75aee6bf12e9) introduces a distinct GHOSTTY_ACTION_OPEN_URL_KIND_OSC8 action kind and a macOS-specific UntrustedURL policy that rejects malformed targets and unsafe Unicode characters, requires an explicit scheme, validates web hosts, canonicalizes local paths and resolves symlinks before classification, blocks executable or active content, requires confirmation for custom schemes, and fails closed rather than falling back to the unrestricted opener. The same release sanitizes the hover banner text and adds a link-osc8 setting to disable OSC 8 links outright.

Know when Ghostty gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 5.0 MEDIUM

Target is delivered over network terminal output (AV:N) but needs a victim Command-click (UI:R) plus a staged malicious file/handler the attacker does not fully control (AC:H); impacts kept Low per vendor scoring.

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A security vulnerability has been detected in Ghostty up to 1.3.1. The impacted element is an unknown function of the component macOS OSC 8 Hyperlink Handler. Such manipulation leads to injection. The attack can be launched remotely. Upgrading to version 1.4.0 is sufficient to resolve this issue. The name of the patch is 54fe8e188552977249a084db687e75aee6bf12e9. Upgrading the affected component is advised.

Threat Intelligence Overview

EPSS Score
0.4%
Top 77% exploitable
Prevalence
Low
niche developer-focused macOS terminal emulator, limited production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy