CVE-2022-27817
Rust vulnerability analysis and mitigation

Overview

SWHKD 1.1.5 contains a vulnerability where it consumes keyboard events of unintended users. The vulnerability was discovered in April 2022 and affects the keyboard event handling functionality in SWHKD, a hotkey daemon for the Wayland graphics system (Openwall).

Technical details

The daemon listens for input events on uinput device level, affecting keyboard input devices across all sessions including other Wayland sessions and text mode consoles. While the vulnerability could theoretically be used to log sensitive information like passwords from other users, recognized hotkey events are discarded by the daemon, making it primarily function as a denial of service (Openwall).

Impact

The main impact is a denial of functionality for other users, as regular key presses configured as hotkeys stop working for unintended users. While there is potential for information leakage of keyboard events, the primary effect is disruption of keyboard functionality (Openwall).

Mitigation and workarounds

As of the 1.2.0 release, this vulnerability remains unfixed as it requires significant architectural changes. The suggested fix involves establishing systemd Session Context and pausing operations when active sessions change, but this solution has scalability concerns and portability issues across different init systems (Github Releases).

Community reactions

The vulnerability was discovered during a security review by the SUSE security team when evaluating the package for openSUSE Tumbleweed. The developers acknowledged the issue but noted the complexity of implementing a complete fix without compromising performance or portability (Openwall).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-2cgv-28vr-rv6jHIGH8.8
  • RustRust
  • libcrux-intrinsics
NoYesDec 04, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
GHSA-mj73-j457-8x9qLOW2.7
  • RustRust
  • maxminddb
NoYesDec 02, 2025
GHSA-pq5v-rwp8-p7gmLOW2.7
  • RustRust
  • rtvm-interpreter
NoNoDec 02, 2025
RUSTSEC-2025-0133N/AN/A
  • RustRust
  • libcrux-intrinsics
NoYesDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management