GHSA-jcr6-4frq-9gjj: Users Users Vulnerable To Unaligned Read Vulnerability
MODERATEGHSA-jcr6-4frq-9gjj is a MODERATE users vulnerable to unaligned read vulnerability (General Security Weakness) affecting Users libraries in the crates.io ecosystem. The issue involves users vulnerable to unaligned read of `*const *const c_char` pointer. Remediation is available in the latest vendor maintenance releases.
GHSA-jcr6-4frq-9gjj at a Glance
How to Fix GHSA-jcr6-4frq-9gjj
To remediate this vulnerability, upgrade all affected Users 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 users to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for users
How to Check if You Are Affected
To determine whether your application is affected by GHSA-jcr6-4frq-9gjj, inspect your project dependencies for Users:
inspect dependencies for users
Analyze the terminal output to locate any version of Users in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 General Security Weakness. In Users, 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
GHSA-jcr6-4frq-9gjj Affected Users Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
users
|
crates.io |
≤ 0.11.0
|
|
References
Frequently Asked Questions
What is GHSA-jcr6-4frq-9gjj?
Which Users versions are affected?
What version fixes GHSA-jcr6-4frq-9gjj?
Is users affected?
What CWE is associated with GHSA-jcr6-4frq-9gjj?
How can I check crates.io dependencies for GHSA-jcr6-4frq-9gjj?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-jcr6-4frq-9gjj",
"modified" : "2023-09-13T14:04:07Z",
"published" : "2023-09-11T20:43:31Z",
"aliases" : [ ],
"summary" : "Users vulnerable to unaligned read of `*const *const c_char` pointer",
"details" : "Affected versions dereference a potentially unaligned pointer. The pointer is commonly unaligned in practice, resulting in undefined behavior.\n\nIn some build modes, this is observable as a panic followed by abort. In other build modes the UB may manifest in some other way, including the possibility of working correctly in some architectures.\n\nThe crate is not currently maintained, so a patched version is not available.\n\n## Recommended alternatives\n- [`uzers`](https://crates.io/crates/uzers) (an actively maintained fork of the `users` crate)\n- [`sysinfo`](https://crates.io/crates/sysinfo)\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "users"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.11.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ogham/rust-users/issues/55"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ogham/rust-users"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2023-0059.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-11T20:43:31Z",
"nvd_published_at" : null
}
}