Medium severity · published Dec 31, 2024
CVE-2024-56803
Ghostty improperly handles window title sequences which can lead to arbitrary command execution
5.1
CVSS
0.5%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 45% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GH
ghostty · ghostty-org
< 1.0.1 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-56803
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-56803
github.com
https://github.com/ghostty-org/ghostty/pull/3908
github.com
https://github.com/ghostty-org/ghostty/security/advisories/GHSA-5hcq-3j4q-4v6p
More from ghostty
8.8
CVE-2026-26982
Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
