GitHub Advisoryadvisory · crates.io

GHSA-p4jg-pccf-h82c Insecure Temporary File in SWHKD

CRITICAL Published 2022-03-31 Modified 2022-04-06 Official page ↗
Aliases
CVE-2022-27815
Ecosystem
crates.io
Packages
Simple-Wayland-HotKey-Daemon
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-377, CWE-59
Reviewed
2022-04-01

Affected packages

• crates.io Simple-Wayland-HotKey-Daemon: < 1.2.0 → fixed in 1.2.0

Description

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.

Related

Weakness · not in database (1)

Alias · CVE (1)

  • CVE-2022-27815 SWHKD 1.1.5 unsafely uses the /tmp/swhkd.pid pathname. vulnerability

Weakness · CWE (1)

  • CWE-59 Improper Link Resolution Before File Access weakness

References