# CVE-2024-56803: Ghostty improperly handles window title sequences which can lead to arbitrary command execution

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2024-12-31T22:48:33.167Z
- Modified: 2026-06-17T08:13:00.403Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- ghostty-org ghostty: < 1.0.1

## References

- <https://github.com/ghostty-org/ghostty/security/advisories/GHSA-5hcq-3j4q-4v6p>
- <https://github.com/ghostty-org/ghostty/pull/3908>

## Sources

- CVE List: [CVE-2024-56803](https://www.cve.org/CVERecord?id=CVE-2024-56803), CVE Terms of Use, modified 2025-01-02
- NVD: [CVE-2024-56803](https://nvd.nist.gov/vuln/detail/CVE-2024-56803), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56803 · Whole record: https://cve.day/CVE-2024-56803.json · Rebuilt by cve.day 2026-11-25T22:58:50.621Z
