waycrate/swhkd · Security
Insecure Temporary File in SWHKD
- GHSA ID
- GHSA-p4jg-pccf-h82c
- CVE ID
- CVE-2022-27815
- Severity
- critical
- Published
- Updated
- CVSS
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- CVSS v3
- 9.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
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.
CWEs
- CWE-59 · Improper Link Resolution Before File Access ('Link Following')
- CWE-377 · Insecure Temporary File
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-27815 ↗
- https://github.com/waycrate/swhkd/commit/e661a4940df78fbb7b52c622ac4ae6a3a7f7d8aa ↗
- https://github.com/waycrate/swhkd/releases ↗
- http://www.openwall.com/lists/oss-security/2022/04/14/1 ↗
- https://github.com/waycrate/swhkd/releases/tag/1.2.0 ↗
- https://github.com/advisories/GHSA-p4jg-pccf-h82c ↗