# CVE-2022-27815: Insecure Temporary File in SWHKD

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-29T23:21:34.000Z
- Modified: 2026-06-17T04:37:33.913Z
- Also known as: GHSA-p4jg-pccf-h82c
- Weaknesses: CWE-59, CWE-377
- Assigned by: mitre

## Description

SWHKD 1.1.5 unsafely uses the /tmp/swhkd.pid pathname. There can be an information leak or denial of service.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- Simple-Wayland-HotKey-Daemon (crates.io): before 1.2.0
- waycrate swhkd: 1.1.5

## Every score

- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.2 Medium `AV:L/AC:H/Au:N/C:C/I:C/A:C`

## References

- <http://www.openwall.com/lists/oss-security/2022/04/14/1> (exploit, mailing-list, patch, third-party-advisory, web)
- <https://github.com/waycrate/swhkd/releases> (release-notes, third-party-advisory, web)
- <https://github.com/waycrate/swhkd/commit/e661a4940df78fbb7b52c622ac4ae6a3a7f7d8aa> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27815> (advisory)
- <https://github.com/waycrate/swhkd> (package)
- <https://github.com/waycrate/swhkd/releases/tag/1.2.0> (web)

## Sources

- CVE List: [CVE-2022-27815](https://www.cve.org/CVERecord?id=CVE-2022-27815), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-p4jg-pccf-h82c](https://github.com/advisories/GHSA-p4jg-pccf-h82c), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-27815](https://nvd.nist.gov/vuln/detail/CVE-2022-27815), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-27815 · Whole record: https://cve.day/CVE-2022-27815.json · Rebuilt by cve.day 2026-11-25T22:58:10.333Z
