Skip to content
OpenAdvisories
Medium · 5.1 CVE-2024-56803 EUVD-2024-53436

Ghostty improperly handles window title sequences which can lead to arbitrary command execution

Published Dec 31, 2024 · Updated Jan 2, 2025 · Assigned by GitHub_M

Description

Ghostty is a cross-platform terminal emulator. Ghostty, as allowed by default in 1.0.0, allows attackers to modify the window title via a certain character escape sequence and then insert it back to the command line in the user's terminal, e.g. when the user views a file containing the malicious sequence, which could allow the attacker to execute arbitrary commands. This attack requires an attacker to send malicious escape sequences followed by convincing the user to physically press the "enter" key. Fixed in Ghostty v1.0.1.

Affected products

VendorProductAffectedFixed
ghostty-org ghostty < 1.0.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 ghostty No fix yet —
Ubuntu 26.04 LTS ghostty No fix yet —

References