Skip to content
Heist/ feed
Back to feed
Medium

ghostty — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2024-56803

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.

Products
ghostty
Affected versions
1.3.0~us1-0ubuntu1, 1.3.0~us1-0ubuntu1.1, 1.3.0~us1-0ubuntu3, 1.3.0~us1-0ubuntu4
Fixed versions
Not specified
CVEs
CVE-2024-56803
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:23 UTC · Revision 1

Source evidence

UBUNTU-CVE-2024-56803

core-osv · Original source

Published 31 Dec 2024, 23:15 UTC

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.

osv:UBUNTU-CVE-2024-56803

ghostty

Fixed versions: Not specified

ghostty

Fixed versions: Not specified

Complete source record
{
  "id": "8185494334b6f1c789acd41b18955bf68c98ac30a382619b343f74cd2c080fd6",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2024-56803",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2024-56803",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2024-56803",
    "products": [
      {
        "name": {
          "value": "ghostty",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0~us1-0ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.3.0~us1-0ubuntu3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.3.0~us1-0ubuntu4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ghostty",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.3.0~us1-0ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.3.0~us1-0ubuntu1.1",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2024-56803",
      "aliases": [
        "UBUNTU-CVE-2024-56803"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostty",
            "purl": "pkg:deb/ubuntu/ghostty?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.3.0~us1-0ubuntu1",
            "1.3.0~us1-0ubuntu3",
            "1.3.0~us1-0ubuntu4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ghostty",
                "binary_version": "1.3.0~us1-0ubuntu4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ghostty",
            "purl": "pkg:deb/ubuntu/ghostty?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.3.0~us1-0ubuntu1",
            "1.3.0~us1-0ubuntu1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56803.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ghostty",
                "binary_version": "1.3.0~us1-0ubuntu1.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:46.148218451Z",
      "provider": "osv",
      "upstream": [
        "CVE-2024-56803"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2024-56803",
        "https://www.cve.org/CVERecord?id=CVE-2024-56803"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2024-56803",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356206,
  "published_at": "2024-12-31T23:15:00+00:00"
}