6.3 MEDIUM
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): REQUIRED
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): LOW
- Availability impact (A): LOW
Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
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.
References
-
https://github.com/ghostty-org/ghostty/security/advisories/GHSA-4jxv-xgrp-5m3r x_refsource_CONFIRM
-
https://github.com/ghostty-org/ghostty/pull/10746 x_refsource_MISC
Affected products
- ==< 1.3.0
Matching in nixpkgs
pkgs.ghostty
Fast, native, feature-rich terminal emulator pushing modern features
pkgs.ghostty-bin
Fast, native, feature-rich terminal emulator pushing modern features
pkgs.tree-sitter-grammars.tree-sitter-ghostty
Tree-sitter grammar for ghostty
-
nixos-unstable 1.2-unstable-2026-01-02
- nixpkgs-unstable 1.2-unstable-2026-01-02
- nixos-unstable-small 1.2-unstable-2026-01-02
pkgs.python313Packages.tree-sitter-grammars.tree-sitter-ghostty
Python bindings for tree-sitter-ghostty
-
nixos-unstable 1.2+unstable20260102
- nixpkgs-unstable 1.2+unstable20260102
- nixos-unstable-small 1.2+unstable20260102
pkgs.python314Packages.tree-sitter-grammars.tree-sitter-ghostty
Python bindings for tree-sitter-ghostty
-
nixos-unstable 1.2+unstable20260102
- nixpkgs-unstable 1.2+unstable20260102
- nixos-unstable-small 1.2+unstable20260102
Package maintainers
-
@getchoo Seth Flynn <getchoo@tuta.io>
-
@pluiedev Leah Amelia Chen <hi@pluie.me>
-
@jcollie Jeffrey C. Ollie <jeff@ocjtech.us>
-
@Enzime Michael Hoang
-
@A-jay98 Ali Jamadi <ali@jamadi.me>
-
@stepbrobd Yifei Sun <ysun@hey.com>
-
@mightyiam Shahar "Dawn" Or <mightyiampresence@gmail.com>
-
@adfaure Adrien Faure <adfaure@pm.me>
-
@aciceri Andrea Ciceri <andrea.ciceri@autistici.org>