GitHub Advisoryadvisory · crates.io
GHSA-p4jg-pccf-h82c Insecure Temporary File in SWHKD
CRITICAL
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
- https://nvd.nist.gov/vuln/detail/CVE-2022-27815 advisory
- https://github.com/waycrate/swhkd/commit/e661a4940df78fbb7b52c622ac4ae6a3a7f7d8aa web
- https://github.com/waycrate/swhkd package
- https://github.com/waycrate/swhkd/releases web
- https://github.com/waycrate/swhkd/releases/tag/1.2.0 web
- http://www.openwall.com/lists/oss-security/2022/04/14/1 web