Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. Simple-Wayland-HotKey-Daemon
  4. ›
  5. CVE-2022-27815

CVE-2022-27815: Insecure Temporary File in SWHKD

March 31, 2022 (updated April 6, 2022)

SWHKD is a display protocol-independent hotkey daemon made in Rust. In SWHKD versions 1.1.5 and prior, SWHKD uses the /tmp/swhkd.pid pathname. As /tmp is accessible to all users, there can be an information leak or denial of service. No known workarounds exist. A patch is available on the 1.1.0 branch of the repository.

References

  • github.com/advisories/GHSA-p4jg-pccf-h82c
  • github.com/waycrate/swhkd
  • github.com/waycrate/swhkd/commit/e661a4940df78fbb7b52c622ac4ae6a3a7f7d8aa
  • github.com/waycrate/swhkd/releases
  • github.com/waycrate/swhkd/releases/tag/1.2.0
  • nvd.nist.gov/vuln/detail/CVE-2022-27815

Code Behaviors & Features

Detect and mitigate CVE-2022-27815 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.0

Fixed versions

  • 1.2.0

Solution

Upgrade to version 1.2.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-377: Insecure Temporary File
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

cargo/Simple-Wayland-HotKey-Daemon/CVE-2022-27815.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:19 +0000.