Skip to content
Heist/ feed
Back to feed
High

Kitty has a shell command injection

Type: advisorySources: OSV

Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, it is possible to inject commands within the subshell through kitty error. A special escape code will make kitty return an error, this error is not escaped and will be correctly echoed back to the terminal with CRLF, as such it will be run by the shell in use. To exploit this bug, the victim must use a netcat or a similar program to connect to the attacker, or else listening for someone to connect. Once this condition is set, an attacker could pwn the computer of the victim using a special kitty's escape code that will run a command in the shell in use. Version 04.7.0 fixes the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42850
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 16:38 UTC · Revision 1

Source evidence

Kitty has a shell command injection

core-osv · Original source

Published 12 Jun 2026, 19:59 UTC

Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, it is possible to inject commands within the subshell through kitty error. A special escape code will make kitty return an error, this error is not escaped and will be correctly echoed back to the terminal with CRLF, as such it will be run by the shell in use. To exploit this bug, the victim must use a netcat or a similar program to connect to the attacker, or else listening for someone to connect. Once this condition is set, an attacker could pwn the computer of the victim using a special kitty's escape code that will run a command in the shell in use. Version 04.7.0 fixes the issue.

osv:CVE-2026-42850
Complete source record
{
  "id": "459ce7417536757a0764b7de8160391aebad2932d856628defdc07d6e4cd4cf1",
  "url": "https://osv.dev/vulnerability/CVE-2026-42850",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Kitty has a shell command injection",
    "summary": "Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, it is possible to inject commands within the subshell through kitty error. A special escape code will make kitty return an error, this error is not escaped and will be correctly echoed back to the terminal with CRLF, as such it will be run by the shell in use. To exploit this bug, the victim must use a netcat or a similar program to connect to the attacker, or else listening for someone to connect. Once this condition is set, an attacker could pwn the computer of the victim using a special kitty's escape code that will run a command in the shell in use. Version 04.7.0 fixes the issue.",
    "evidence": "osv:CVE-2026-42850",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-42850",
      "aliases": [
        "CVE-2026-42850",
        "GHSA-p64q-59hq-5q65"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kovidgoyal/kitty",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "eadec09d499b6a1332fc75960a51abb1645d26ab"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.47.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:kovidgoyal:kitty:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.47.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.46.2",
            "v0.46.1",
            "v0.46.0",
            "nightly",
            "v0.45.0",
            "v0.44.0",
            "v0.43.1",
            "v0.43.0",
            "v0.42.2",
            "v0.42.1",
            "v0.42.0",
            "v0.41.1",
            "v0.41.0",
            "v0.40.1",
            "v0.40.0",
            "v0.39.1",
            "v0.39.0",
            "v0.38.1",
            "v0.38.0",
            "v0.37.0",
            "v0.36.4",
            "v0.36.3",
            "v0.36.2",
            "v0.36.1",
            "v0.36.0",
            "v0.35.2",
            "v0.35.1",
            "v0.35.0",
            "v0.34.1",
            "v0.34.0",
            "v0.33.1",
            "v0.33.0",
            "v0.32.2",
            "v0.32.1",
            "v0.32.0",
            "v0.31.0",
            "v0.30.1",
            "v0.30.0",
            "v0.29.2",
            "v0.29.1",
            "v0.29.0",
            "v0.28.1",
            "v0.28.0",
            "v0.27.1",
            "v0.27.0",
            "v0.26.5",
            "v0.26.4",
            "v0.26.3",
            "v0.26.2",
            "v0.26.1",
            "v0.26.0",
            "v0.25.2",
            "v0.25.1",
            "v0.25.0",
            "v0.24.4",
            "v0.24.3",
            "v0.24.2",
            "v0.24.1",
            "v0.24.0",
            "v0.23.1",
            "v0.23.0",
            "v0.22.2",
            "v0.22.1",
            "v0.22.0",
            "v0.21.2",
            "v0.21.1",
            "v0.21.0",
            "v0.20.3",
            "v0.20.2",
            "v0.20.1",
            "v0.20.0",
            "v0.19.3",
            "v0.19.2",
            "v0.19.1",
            "v0.19.0",
            "v0.18.3",
            "v0.18.2",
            "v0.18.1",
            "v0.18.0",
            "v0.17.4",
            "v0.17.3",
            "v0.17.2",
            "v0.17.1",
            "v0.17.0",
            "v0.16.0",
            "v0.15.1",
            "v0.15.0",
            "v0.14.6",
            "v0.14.5",
            "v0.14.4",
            "v0.14.3",
            "v0.14.2",
            "v0.14.1",
            "v0.14.0",
            "v0.13.3",
            "v0.13.2",
            "v0.13.1",
            "v0.13.0",
            "v0.12.3",
            "v0.12.2",
            "v0.12.1",
            "v0.12.0",
            "v0.11.3",
            "v0.11.2",
            "v0.11.1",
            "v0.11.0",
            "v0.10.1",
            "v0.10.0",
            "v0.9.1",
            "v0.9.0",
            "v0.8.4",
            "v0.8.3",
            "v0.8.2",
            "v0.8.1",
            "v0.8.0",
            "v0.7.1",
            "v0.7.0",
            "v0.6.1",
            "v0.6.0",
            "v0.5.1",
            "v0.5.0",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.8",
            "v0.2.7",
            "v0.2.6",
            "v0.2.5",
            "v0.2.4",
            "v0.2.3",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42850.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.469358843Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42850.json",
        "https://github.com/kovidgoyal/kitty/security/advisories/GHSA-p64q-59hq-5q65",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42850"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-77"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42850.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42850",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504774,
  "published_at": "2026-06-12T19:59:14.267+00:00"
}