ghsa-m65q-v92h-cm7q
Vulnerability from github
Published
2025-06-05 01:17
Modified
2025-06-06 23:16
Severity ?
Summary
users may append `root` to group listings
Details
Affected versions append root
to group listings, unless the correct listing has exactly 1024 groups.
This affects both:
- The supplementary groups of a user
- The group access list of the current process
If the caller uses this information for access control, this may lead to privilege escalation.
This crate is not currently maintained, so a patched version is not available.
Versions older than 0.8.0 do not contain the affected functions, so downgrading to them is a workaround.
Recommended alternatives
{ "affected": [ { "package": { "ecosystem": "crates.io", "name": "users" }, "ranges": [ { "events": [ { "introduced": "0.8.0" }, { "last_affected": "0.11.0" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-5791" ], "database_specific": { "cwe_ids": [ "CWE-266" ], "github_reviewed": true, "github_reviewed_at": "2025-06-05T01:17:28Z", "nvd_published_at": null, "severity": "HIGH" }, "details": "Affected versions append `root` to group listings, unless the correct listing has exactly 1024 groups.\n\nThis affects both:\n\n- The supplementary groups of a user\n- The group access list of the current process\n\nIf the caller uses this information for access control, this may lead to privilege escalation.\n\nThis crate is not currently maintained, so a patched version is not available.\n\nVersions older than 0.8.0 do not contain the affected functions, so downgrading to them is a workaround.\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)", "id": "GHSA-m65q-v92h-cm7q", "modified": "2025-06-06T23:16:38Z", "published": "2025-06-05T01:17:28Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-5791" }, { "type": "WEB", "url": "https://github.com/ogham/rust-users/issues/44" }, { "type": "WEB", "url": "https://access.redhat.com/security/cve/CVE-2025-5791" }, { "type": "WEB", "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2370001" }, { "type": "PACKAGE", "url": "https://github.com/ogham/rust-users" }, { "type": "WEB", "url": "https://rustsec.org/advisories/RUSTSEC-2025-0040.html" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "type": "CVSS_V3" } ], "summary": "users may append `root` to group listings" }
Loading...
Loading...
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.