# CVE-2022-27816: Data Loss/Denial of Service in SWHKD

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/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.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-30T01:47:18.000Z
- Modified: 2026-06-17T04:37:34.023Z
- Also known as: GHSA-8m49-2xj8-67v9
- Weaknesses: CWE-59
- Assigned by: mitre

## Description

SWHKD 1.1.5 unsafely uses the /tmp/swhks.pid pathname. There can be data loss or a 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 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 3.3 Low `AV:L/AC:M/Au:N/C:N/I:P/A:P`

## 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)
- <https://github.com/waycrate/swhkd/commit/0b620a09605afb815c6d8d8953bbb7a10a8c0575> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-27816> (advisory)
- <https://github.com/waycrate/swhkd> (package)
- <https://github.com/waycrate/swhkd/releases/tag/1.2.0> (web)

## Sources

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

---

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