GHSA-jcr6-4frq-9gjj: Users Users Vulnerable To Unaligned Read Vulnerability

MODERATE
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-jcr6-4frq-9gjj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Users
Package Ecosystem crates.io
Published Date
Last Updated

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.

users fixed: Latest secure release
Upgrade users to Latest secure release
Verify Direct and Transitive Dependencies

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

Affected versions dereference a potentially unaligned pointer. The pointer is commonly unaligned in practice, resulting in undefined behavior. In 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. The crate is not currently maintained, so a patched version is not available. ## Recommended alternatives - [`uzers`](https://crates.io/crates/uzers) (an actively maintained fork of the `users` crate) - [`sysinfo`](https://crates.io/crates/sysinfo)

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?
GHSA-jcr6-4frq-9gjj is a security vulnerability in Users involving Users vulnerable to unaligned read of `*const *const c_char` pointer under General Security Weakness.
Which Users versions are affected?
Affected versions include releases prior to current release patches across affected packages: users.
What version fixes GHSA-jcr6-4frq-9gjj?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is users affected?
Yes, users is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-jcr6-4frq-9gjj?
GHSA-jcr6-4frq-9gjj is classified under General Security Weakness.
How can I check crates.io dependencies for GHSA-jcr6-4frq-9gjj?
Run the dependency tree command: 'inspect dependencies for users'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}