5.1

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

Deferred
AliasesUBUNTU-CVE-2024-56803
Published 31-12-2024Last modified 02-01-2025

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.

Priority
Routine

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?
CVSS score
5.1/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.54%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 31-12-2024
    PublishedVulnerability first disclosed.
  2. 02-01-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ghostty-org1 product
Ubuntu1 product
  • ghosttyAll versions (No fix recorded)

2 vendors · 2 products

References

4 links