CVE-2024-56803: Ghostty improperly handles window title sequences which can lead to arbitrary command execution
Vulnerability summary
CVE-2024-56803 is a medium (CVSS 5.1) Improper Control of Generation of Code vulnerability in ghostty-org ghostty. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 47% of scored vulnerabilities.
Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Timeline
- 31-12-2024PublishedVulnerability first disclosed.
- 02-01-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.54% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ghostty-org1 product
- ghostty< 1.0.1
Ubuntu1 product
- ghosttyAll versions (No fix recorded)
2 vendors · 2 products
References
4 links- github.com/ghostty-org/ghostty/security/advisories/GHSA-5hcq-3j4q-4v6pX Refsource CONFIRM
- github.com/ghostty-org/ghostty/pull/3908X Refsource MISC