# CVE-2026-95835: Missing ownership check on the shared memory object named by the kitty askpass escape code

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.6
- **CVSS:** 5.6 (v4.0, CNA) `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: Low; User interaction: Active; Confidentiality impact: High; Integrity impact: Low; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.14% (percentile 2, 2026-11-26)
- **CWE:** CWE-862
- **Published:** 2026-09-25T16:33:30.323Z
- **Modified:** 2026-09-29T21:32:59.833Z

## Who should check

- Anyone running Kovid Goyal kitty \>= 0.25.0, \< 0.49.0

## Description

Missing Authorization in the askpass escape code handler in kitty from 0.25.0 before 0.49.0 allows a local user other than the one running the terminal to obtain the text typed into a prompt that kitty itself displays, because handle\_remote\_askpass() in kitty/window.py opens the POSIX shared memory object named in the escape code, parses a prompt definition out of it, and writes the user's answer back into an object of that same name, without at any point checking that the object is owned by the user running kitty or that its permissions exclude other users. The equivalent consumer of the same SharedMemory class in the ssh kitten performs exactly that check; the askpass path did not. The handler is reached through a device control string processed from the byte stream of the window, so the attacker must also cause bytes of their choosing to be displayed by the victim's terminal. Where the POSIX shared memory namespace is shared between the two users, a second local user can create an object with permissions that allow the victim to read and write it, cause the victim's kitty to render a prompt of the attacker's choosing, including a masked password prompt, and read the typed secret back out of the object afterwards. The prompt text is additionally passed to the display without control character sanitisation, so it can overwrite the warning line kitty prints above it. The answer is written by reopening an object of that name when the user answers, rather than through the handle already held. This results in disclosure of a secret typed by the victim to a second local user, and does not require any privilege on the victim's account.

## Affected and fixed versions

- Kovid Goyal kitty: \>= 0.25.0, \< 0.49.0 (cvelist)

## Mitigation

- Upgrade kitty to 0.49.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-95835. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-95835.md
Affected: Kovid Goyal kitty >= 0.25.0, < 0.49.0
Fixed in: Kovid Goyal kitty 0.49.0

Steps:
1. Search this machine and project for Kovid Goyal kitty: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-95835 being exploited?

There is no confirmed exploitation: CVE-2026-95835 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-95835?

Medium: CVSS 5.6 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-95835?

Kovid Goyal kitty \>= 0.25.0, \< 0.49.0.

### Is there a fix for CVE-2026-95835?

Yes. Fixed in Kovid Goyal kitty 0.49.0. Upgrade kitty to 0.49.0 or later.

### How do I check if I'm affected by CVE-2026-95835?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/kovidgoyal/kitty/commit/3281919056c442e4ba6f5abed7ee2c5130de31ff>
- article: <https://secur0.com/en/cna/cve-list/cve-2026-95835-kitty-askpass-shared-memory-ownership>
- other: <https://github.com/kovidgoyal/kitty/releases/tag/v0.49.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-95835>

HTML: <https://flawdb.com/CVE-2026-95835> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-95835>
