Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl victim terminal output
-
DeliveryEmit crafted OSC 8 hyperlink with concealed target
-
ExploitVictim Command-clicks link
-
ExecutionGhostty passes target to Launch Services
-
ImpactMalicious 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-136050
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB