cve.bz

CVE-2026-42851 kovidgoyal kitty: Code Injection

7.8 highExploit referenceEPSS 0.2%

High (7.8) in kovidgoyal kitty. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
Kitty is a cross-platform GPU based terminal. In versions prior to 0.47.0, a program able to write bytes to a kitty terminal — a remote SSH peer, a downloaded file viewed with `cat`, a log line, an email body rendered in `less`, an issue body in a TUI, etc. — can cause kitty to execute attacker-supplied Python inside the running kitty process, with the user's full privileges. There is no approval prompt, no remote-control permission requirement, no shell-integration interaction, no clipboard touch, and no editor interaction. Version 0.47.0 fixes the issue.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-862 Missing Authorization
OWASP Top 10
A01:2025 Broken Access Control, A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42851 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42851?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42851?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42851 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
kovidgoyal:kittybefore 0.47.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12kitty0.26.5-5+deb12u1DEBIAN-CVE-2026-42851 DLA-4928-1
Debian13kitty0.41.1-2+deb13u2DEBIAN-CVE-2026-42851 DSA-6423-1
Debian14kitty0.47.0-1DEBIAN-CVE-2026-42851
Ubuntu25.10kittyno fix listedUBUNTU-CVE-2026-42851
UbuntuPro:24.04:LTSkitty0.32.2-1ubuntu0.4+esm2UBUNTU-CVE-2026-42851 USN-8763-1
UbuntuPro:26.04:LTSkitty0.45.0-1ubuntu0.1~esm2UBUNTU-CVE-2026-42851 USN-8763-1
openSUSELeap 16.0kitty0.48.2-bp160.1.1openSUSE-SU-2026:21599-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Attack patterns (CAPEC)

  • CAPEC-665 Exploitation of Thunderbolt Protection Flaws Likelihood: Low · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON