CVE-2022-27819: Simple Wayland HotKey Daemon Unsafe Parsing Vulnerability
MODERATECVE-2022-27819 is a MODERATE (CVSS 5.3) unsafe parsing vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Simple Wayland HotKey Daemon libraries in the crates.io ecosystem. The issue involves unsafe parsing in swhkd. Remediation is available by upgrading affected packages to version 1.2.0.
CVE-2022-27819 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H).
How to Fix CVE-2022-27819
To remediate this vulnerability, upgrade all affected Simple Wayland HotKey Daemon dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Simple-Wayland-HotKey-Daemon to 1.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Simple-Wayland-HotKey-Daemon
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-27819, inspect your project dependencies for Simple Wayland HotKey Daemon:
inspect dependencies for Simple-Wayland-HotKey-Daemon
Analyze the terminal output to locate any version of Simple Wayland HotKey Daemon in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Simple Wayland HotKey Daemon, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-27819 Affected Simple Wayland HotKey Daemon Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Simple-Wayland-HotKey-Daemon
|
crates.io |
< 1.2.0
|
1.2.0
|
References
Frequently Asked Questions
What is CVE-2022-27819?
Which Simple Wayland HotKey Daemon versions are affected?
What version fixes CVE-2022-27819?
Is Simple-Wayland-HotKey-Daemon affected?
What is the CVSS score of CVE-2022-27819?
What CWE is associated with CVE-2022-27819?
How can I check crates.io dependencies for CVE-2022-27819?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h6xw-mghq-7523",
"modified" : "2022-04-15T16:14:51Z",
"published" : "2022-04-08T00:00:24Z",
"aliases" : [ "CVE-2022-27819" ],
"summary" : "Unsafe parsing in SWHKD",
"details" : "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).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "Simple-Wayland-HotKey-Daemon"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-27819"
}, {
"type" : "WEB",
"url" : "https://github.com/waycrate/swhkd/commit/b4e6dc76f4845ab03104187a42ac6d1bbc1e0021"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/waycrate/swhkd"
}, {
"type" : "WEB",
"url" : "https://github.com/waycrate/swhkd/releases"
}, {
"type" : "WEB",
"url" : "https://github.com/waycrate/swhkd/releases/tag/1.2.0"
}, {
"type" : "WEB",
"url" : "http://www.openwall.com/lists/oss-security/2022/04/14/1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-08T22:12:17Z",
"nvd_published_at" : "2022-04-07T02:15:00Z"
}
}