# CVE-2022-27819: Unsafe parsing in SWHKD

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/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.86%, higher than 59% of CVEs (2026-12-01)
- Published: 2022-04-07T01:31:41.000Z
- Modified: 2026-06-17T04:37:34.350Z
- Also known as: GHSA-h6xw-mghq-7523
- Weaknesses: CWE-400, CWE-770
- Assigned by: mitre

## Description

SWHKD 1.1.5 allows unsafe parsing via the -c option. An information leak might occur but there is a simple denial of service (memory exhaustion) upon an attempt to parse a large or infinite file (such as a block or character device).

(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 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:H/Au:N/C:P/I:N/A:P`

## References

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

## Sources

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

---

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