CVE-2026-95832
Reflected unknown field names in the kitty colour control escape code allow command execution in the user's shell
Check your servers for CVE-2026-95832
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-95832 affects kitty, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
Improper Neutralization of Special Elements in Output Used by a Downstream Component in the colour control escape code handler in kitty from 0.47.3 before 0.49.0 allows a program writing to the terminal to execute an arbitrary command in the user's shell, because color_control() in kitty/window.py answers a query for an unrecognised field name by placing that field name into the reply, and write_escape_code_to_child() in kitty/screen.c then writes the reply to the pseudoterminal master, where it is not distinguishable from input typed by the user, without neutralising it for the shell that reads it. The payload is reduced to printable ASCII before the field name is echoed, which is the restriction introduced in 0.47.3 as the fix for CVE-2026-54057, and the record and field separators ; and = are consumed as delimiters, but every other printable character survives, which is sufficient to compose a shell command. A newline is available from handle_remote_ssh() in kitty/window.py, which writes the bytes yielded by get_ssh_data() in kittens/ssh/utils.py, the first of which begin with a newline, to the pseudoterminal master before any credential carried in the request is checked. The reply is framed as an OSC sequence carrying the escape code number, the field name, and the literal value ?. This results in execution of an attacker-chosen command with the privileges of the user running the terminal.
Severity (CVSS)
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- passive: a user has to take part without knowing, such as by viewing a page
- Impact on the vulnerable system
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.42% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 25 Sep 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| kitty |
affected from 0.47.3, before 0.49.0
Other versions: unaffected
|
Is my server affected?
Find the installed version of kitty and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i kitty
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-95832 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-95832RHEL, Rocky, Alma, Fedora
rpm -q kitty
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-95832Alpine
apk list --installed | grep -i kittyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-95832
trivy image --scanners vuln IMAGE | grep CVE-2026-95832
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://secur0.com/en/cna/cve-list/cve-2026-95832-kitty-color-control-command-execution secur0.com · third party advisory, technical description
Patches and release notes
- https://github.com/kovidgoyal/kitty/commit/03fbdad855490470233954bc810e517027e5e640 github.com · patch
- https://github.com/kovidgoyal/kitty/releases/tag/v0.49.0 github.com · release notes
Other references
- https://github.com/kovidgoyal/kitty/commit/57bb144d96c0f9d48a2b0a6d43c9a23d2a091cbf github.com · related
- https://www.cve.org/CVERecord?id=CVE-2026-54057 cve.org · related
Source: the record CVE-2026-95832 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse