Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
Ghostty is a cross-platform terminal emulator. Ghostty allows control characters such as 0x03 (Ctrl+C) in pasted and dropped text. These can be used to execute arbitrary commands in some shell environments. This attack requires an attacker to convince the user to copy and paste or drag and drop malicious text. The attack requires user interaction to be triggered, but the dangerous characters are invisible in most GUI environments so it isn't trivially detected, especially if the string contents are complex. Fixed in Ghostty v1.3.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-26982
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 04:05 UTC · Revision 1
Source evidence
Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations
core-osv · Original sourcePublished 9 Mar 2026, 21:14 UTC
Ghostty is a cross-platform terminal emulator. Ghostty allows control characters such as 0x03 (Ctrl+C) in pasted and dropped text. These can be used to execute arbitrary commands in some shell environments. This attack requires an attacker to convince the user to copy and paste or drag and drop malicious text. The attack requires user interaction to be triggered, but the dangerous characters are invisible in most GUI environments so it isn't trivially detected, especially if the string contents are complex. Fixed in Ghostty v1.3.0.
osv:CVE-2026-26982
Complete source record
{
"id": "deb401ba1941799a9e7c8c7c88bed3a54dc826cee592ecd0ee382e7949638c21",
"url": "https://osv.dev/vulnerability/CVE-2026-26982",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Ghostty affected by arbitrary command execution via control characters in paste and drag-and-drop operations",
"summary": "Ghostty is a cross-platform terminal emulator. Ghostty allows control characters such as 0x03 (Ctrl+C) in pasted and dropped text. These can be used to execute arbitrary commands in some shell environments. This attack requires an attacker to convince the user to copy and paste or drag and drop malicious text. The attack requires user interaction to be triggered, but the dangerous characters are invisible in most GUI environments so it isn't trivially detected, especially if the string contents are complex. Fixed in Ghostty v1.3.0.",
"evidence": "osv:CVE-2026-26982",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-26982",
"aliases": [
"CVE-2026-26982",
"GHSA-4jxv-xgrp-5m3r"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ghostty-org/ghostty",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "703d11c642a96af9e54b55b04f131bf3888948a9"
},
{
"fixed": "fe7427ed2a1a02aef85495b384cfb8f11ee5efc9"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ghostty:ghostty:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.3.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "fe7427ed2a1a02aef85495b384cfb8f11ee5efc9"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.2.0",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.1",
"v1.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-26982.json"
}
}
],
"modified": "2026-10-28T02:30:46.674718712Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26982.json",
"https://github.com/ghostty-org/ghostty/security/advisories/GHSA-4jxv-xgrp-5m3r",
"https://nvd.nist.gov/vuln/detail/CVE-2026-26982",
"https://github.com/ghostty-org/ghostty/commit/fe7427ed2a1a02aef85495b384cfb8f11ee5efc9",
"https://github.com/ghostty-org/ghostty/pull/10746"
],
"provider_metadata": {
"cwe_ids": [
"CWE-78"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/26xxx/CVE-2026-26982.json"
}
},
"related_cves": [
{
"value": "CVE-2026-26982",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514563,
"published_at": "2026-03-09T21:14:27.693+00:00"
}