CVEfocus › CVE database › CVE-2026-95835

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

CVSS 5.6 MediumEPSS 0.1% (higher than 2% of CVEs)Published 2026-09-25Updated 2026-09-25Assigner: Secur0

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.

CWE-862

What to do

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

8Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10kittyFix pendingUBUNTU-CVE-2026-95835
Ubuntu 26.04kittyFix pendingUBUNTU-CVE-2026-95835
Ubuntu 24.04kittyFix pendingUBUNTU-CVE-2026-95835
Ubuntu 22.04kittyFix pendingUBUNTU-CVE-2026-95835
Ubuntu 20.04kittyFix pendingUBUNTU-CVE-2026-95835
Debian 14kittyFix pendingDEBIAN-CVE-2026-95835
Debian 13kittyFix pendingDEBIAN-CVE-2026-95835
Debian 12kittyFix pendingDEBIAN-CVE-2026-95835

What the vendor says

As published in the CVE record by Secur0, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to kitty 0.49.0 or later. Only systems on which the two users share a POSIX shared memory namespace are exposed to the cross-user case; a session confined to its own mount namespace with its own /dev/shm, as in a container, is not.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.