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… (CVE-2026-95835)
Description
A missing authorization vulnerability exists in the askpass escape code handler in kitty versions from 0.25.0 before 0.49.0. This flaw allows a local user other than the one running the terminal to capture text typed into a prompt displayed by kitty, including secrets such as passwords. The vulnerability arises because the handler does not verify ownership or permissions of a POSIX shared memory object used to exchange prompt data, enabling another local user to create a malicious shared memory object and read the victim's input. The prompt text can also overwrite warning lines due to lack of control character sanitization. Exploitation requires the attacker to cause specific bytes to be displayed by the victim's terminal. This issue does not require elevated privileges on the victim's account.
CVSS v4.0
Affected software
pkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/kitty?arch=source&distro=stonkingpkg:deb/ubuntu/kitty?arch=source&distro=esm-apps/resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in kitty (versions 0.25.0 up to but not including 0.49.0) is due to missing authorization checks in the askpass escape code handler. The function handle_remote_askpass() opens a POSIX shared memory object named in the escape code, parses a prompt, and writes the user's answer back without verifying that the shared memory object is owned by the user running kitty or that its permissions exclude other users. Unlike the ssh kitten component, this path lacks ownership and permission checks. An attacker with local access can create a shared memory object with permissive access, cause the victim's kitty terminal to display a prompt of the attacker's choosing, including a masked password prompt, and then read the victim's typed secret from the shared memory object. The prompt text is also displayed without sanitizing control characters, allowing overwriting of warning lines. This results in disclosure of secrets typed by the victim to another local user without requiring victim privilege escalation.
Potential Impact
A local attacker can obtain sensitive information typed by another user into kitty's askpass prompt, including passwords or other secrets. This leads to confidentiality loss of sensitive input data without requiring elevated privileges on the victim's account. The attacker must be able to cause the victim's terminal to display attacker-controlled bytes to trigger the vulnerability. The vulnerability affects confidentiality but does not directly impact integrity or availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is applied, restrict local user access to the system to trusted users only. Monitor for unusual local activity that might attempt to exploit this vulnerability. Avoid running kitty in multi-user environments where untrusted local users exist. Follow vendor guidance once an official fix is released and apply updates promptly.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-95835
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.10","Ubuntu:Pro:26.04:LTS"]
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ad3f5152cdf04f656657c46
Added to database: 10/17/2026, 22:22:13 UTC
Last enriched: 10/17/2026, 22:59:53 UTC
Last updated: 10/17/2026, 22:59:53 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.