{"id":"RUSTSEC-2025-0040","revision":null,"records":[{"revision":"b0f393dcbe2d4447afd9dc4d57801edc","observedAt":"2026-11-04T22:54:02.795+00:00","statement":{"source":"cve-program","id":"CVE-2025-5791","aliases":[],"title":"Users: `root` appended to group listings","description":"A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the access list.","state":0,"publishedAt":"2025-06-06T13:10:07.157+00:00","modifiedAt":"2026-11-04T21:35:33.423+00:00","affected":[{"ecosystem":"https://github.com/ogham/rust-users/","name":"rust-users","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0.8.0\",\n                            \"lessThan\": \"0.11.1\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageName\": \"rust-users\",\n                    \"collectionURL\": \"https://github.com/ogham/rust-users/\",\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://catalog.redhat.com/software/containers/","name":"openshift-sandboxed-containers/osc-rhel9-operator","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat OpenShift sandboxed containers 1.10\",\n                    \"collectionURL\": \"https://catalog.redhat.com/software/containers/\",\n                    \"packageName\": \"openshift-sandboxed-containers/osc-rhel9-operator\",\n                    \"defaultStatus\": \"affected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"1.10-1753885668\",\n                            \"lessThan\": \"*\",\n                            \"versionType\": \"rpm\",\n                            \"status\": \"unaffected\"\n                        }\n                    ],\n                    \"cpes\": [\n                        \"cpe:/a:redhat:confidential_compute_attestation:1.10::el9\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"rust-ssh-key-dir","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat Enterprise Linux 10\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"rust-ssh-key-dir\",\n                    \"defaultStatus\": \"affected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:enterprise_linux:10\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"rust-afterburn","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat Enterprise Linux 9\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"rust-afterburn\",\n                    \"defaultStatus\": \"affected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:enterprise_linux:9\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"kata-containers","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat OpenShift Container Platform 4\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"kata-containers\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:openshift:4\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"rust-afterburn","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat OpenShift Container Platform 4\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"rust-afterburn\",\n                    \"defaultStatus\": \"affected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:openshift:4\"\n                    ]\n                }"},{"ecosystem":"https://access.redhat.com/downloads/content/package-browser/","name":"rhtpa/rhtpa-trustification-service-rhel9","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Red Hat\",\n                    \"product\": \"Red Hat Trusted Profile Analyzer\",\n                    \"collectionURL\": \"https://access.redhat.com/downloads/content/package-browser/\",\n                    \"packageName\": \"rhtpa/rhtpa-trustification-service-rhel9\",\n                    \"defaultStatus\": \"affected\",\n                    \"cpes\": [\n                        \"cpe:/a:redhat:trusted_profile_analyzer:1\"\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":"HIGH"}],"references":["https://access.redhat.com/errata/RHSA-2025:12359","https://access.redhat.com/security/cve/CVE-2025-5791","https://bugzilla.redhat.com/show_bug.cgi?id=2370001","https://crates.io/crates/users","https://github.com/ogham/rust-users/issues/44","https://rustsec.org/advisories/RUSTSEC-2025-0040.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-5791","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-5791","identifiers":["CVE-2025-5791"]},"retained":false,"historicalAffected":[]},{"revision":"9b1ed9c9b2604a059f049af5bb715fee","observedAt":"2026-11-15T04:37:09.142+00:00","statement":{"source":"euvd","id":"EUVD-2025-16945","aliases":["CVE-2025-5791","GHSA-m65q-v92h-cm7q"],"title":"A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the…","description":"A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the access list.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":null}],"references":["https://access.redhat.com/errata/RHSA-2025:12359","https://access.redhat.com/security/cve/CVE-2025-5791","https://bugzilla.redhat.com/show_bug.cgi?id=2370001","https://crates.io/crates/users","https://github.com/ogham/rust-users/issues/44","https://rustsec.org/advisories/RUSTSEC-2025-0040.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-16945","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jun 6, 2025, 1:10:07 PM","dateUpdated":"Nov 4, 2026, 9:35:33 PM"},"relatedAdvisories":[{"id":"SUSE-SU-2026:23071-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791","CVE-2026-25541","CVE-2026-41676","CVE-2026-41677","CVE-2026-41678","CVE-2026-41681","CVE-2026-41898","CVE-2026-42327","CVE-2026-44662","CVE-2026-45784"]},{"id":"SUSE-RU-2025:20961-1","title":"Recommended update for afterburn","vulnerabilityIds":["CVE-2025-5791"]},{"id":"openSUSE-SU-2025:15246-1","title":"mirrorsorcerer-0.1.3~1-1.1 on GA media","vulnerabilityIds":["CVE-2025-5791"]},{"id":"SUSE-RU-2025:21046-1","title":"Recommended update for afterburn","vulnerabilityIds":["CVE-2025-5791"]},{"id":"openSUSE-SU-2025:15628-1","title":"lsd-1.2.0-1.1 on GA media","vulnerabilityIds":["CVE-2025-5791"]},{"id":"RHSA-2025:12359","title":"Red Hat Security Advisory: Red Hat OpenShift sandboxed containers release","vulnerabilityIds":["CVE-2025-5791","CVE-2025-22871"]},{"id":"openSUSE-SU-2025:15217-1","title":"flake-pilot-3.1.19-1.1 on GA media","vulnerabilityIds":["CVE-2025-3416","CVE-2025-5791"]},{"id":"openSUSE-SU-2025:15412-1","title":"agama-17+60.68fdb92ec-26.1 on GA media","vulnerabilityIds":["CVE-2025-5791"]},{"id":"SUSE-SU-2025:02166-1","title":"Security update for himmelblau","vulnerabilityIds":["CVE-2025-3416","CVE-2025-5791"]},{"id":"openSUSE-SU-2025:15335-1","title":"afterburn-5.8.2-3.1 on GA media","vulnerabilityIds":["CVE-2025-5791"]},{"id":"SUSE-SU-2025:3783-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791"]},{"id":"msrc_CVE-2025-5791","title":"Users: `root` appended to group listings","vulnerabilityIds":["CVE-2025-5791"]},{"id":"SUSE-SU-2025:3784-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791"]},{"id":"SUSE-SU-2025:3786-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791"]},{"id":"SUSE-SU-2026:22917-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791","CVE-2026-25541","CVE-2026-41676","CVE-2026-41677","CVE-2026-41678","CVE-2026-41681","CVE-2026-41898","CVE-2026-42327","CVE-2026-44662","CVE-2026-45784"]},{"id":"SUSE-SU-2025:3785-1","title":"Security update for afterburn","vulnerabilityIds":["CVE-2022-24713","CVE-2024-12224","CVE-2025-3416","CVE-2025-5791"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-16945","identifiers":["EUVD-2025-16945","CVE-2025-5791","GHSA-m65q-v92h-cm7q"]},"retained":false,"historicalAffected":[]},{"revision":"458fa2656ada4611bea96f6da657a27c","observedAt":"2026-11-06T07:38:19.862+00:00","statement":{"source":"nvd","id":"CVE-2025-5791","aliases":[],"title":"A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the…","description":"A flaw was found in the user's crate for Rust. This vulnerability allows privilege escalation via incorrect group listing when a user or process has fewer than exactly 1024 groups, leading to the erroneous inclusion of the root group in the access list.","state":0,"publishedAt":"2025-06-06T14:15:23.137+00:00","modifiedAt":"2026-11-04T22:17:38.203+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · secalert@redhat.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":7.1,"severity":"HIGH"}],"references":["https://access.redhat.com/errata/RHSA-2025:12359","https://access.redhat.com/security/cve/CVE-2025-5791","https://bugzilla.redhat.com/show_bug.cgi?id=2370001","https://crates.io/crates/users","https://github.com/ogham/rust-users/issues/44","https://rustsec.org/advisories/RUSTSEC-2025-0040.html"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-5791","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-266"],"productCriteria":[],"sourceDates":{"published":"2025-06-06T14:15:23.137","lastModified":"2026-11-04T22:17:38.203"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-5791","identifiers":["CVE-2025-5791"]},"retained":false,"historicalAffected":[]},{"revision":"b8853ac413454ecf8d6a11331bddb91f","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-m65q-v92h-cm7q","aliases":["CVE-2025-5791","RUSTSEC-2025-0040"],"title":"users may append `root` to group listings","description":"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)","state":0,"publishedAt":"2025-06-05T01:17:28+00:00","modifiedAt":"2026-09-10T03:50:57.7061299+00:00","affected":[{"ecosystem":"crates.io","name":"users","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.8.0"},{"kind":"last_affected","version":"0.11.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2025-5791","https://github.com/ogham/rust-users/issues/44","https://access.redhat.com/security/cve/CVE-2025-5791","https://bugzilla.redhat.com/show_bug.cgi?id=2370001","https://github.com/ogham/rust-users","https://rustsec.org/advisories/RUSTSEC-2025-0040.html"],"sourceUrl":"https://github.com/advisories/GHSA-m65q-v92h-cm7q","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m65q-v92h-cm7q","identifiers":["GHSA-m65q-v92h-cm7q","CVE-2025-5791","RUSTSEC-2025-0040"]},"retained":false,"historicalAffected":[]},{"revision":"146ac837874b48c683470776374e8850","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0040","aliases":["CVE-2025-5791","GHSA-m65q-v92h-cm7q"],"title":"`root` appended to group listings","description":"Affected versions append `root` to group listings, unless the correct listing\nhas 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\nprivilege 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\nto 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)","state":0,"publishedAt":"2025-01-15T12:00:00+00:00","modifiedAt":"2025-10-28T06:28:57.282109+00:00","affected":[{"ecosystem":"crates.io","name":"users","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.8.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/users","https://rustsec.org/advisories/RUSTSEC-2025-0040.html","https://github.com/ogham/rust-users/issues/44"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0040","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0040","identifiers":["RUSTSEC-2025-0040","CVE-2025-5791","GHSA-m65q-v92h-cm7q"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-15T12:00:55.3946839+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-15T12:00:55.3946839+00:00","lastSuccessAt":"2026-11-15T12:00:55.579435+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:55.5794357+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-7de4d7559a5263003f03d9f70577ab06f92ba4178309f26fce53e22a4a959294-9f2801eea6d0b63da2583193add6be220e1b53bbbe4ef94b9346425ef1596ca8","complete":true,"records":425788,"lastAttemptAt":"2026-11-15T12:00:54.4294537+00:00","lastSuccessAt":"2026-11-15T12:00:54.4082037+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:54.4294537+00:00","snapshotPublishedAt":"2026-11-15T11:26:58+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-850c26e23e9a454eb8654cf34d45fa51","complete":false,"records":13821,"lastAttemptAt":"2026-11-15T12:10:42.9128167+00:00","lastSuccessAt":"2026-11-15T12:10:42.908+00:00","error":"92 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-15T12:10:42.908+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13568,"expectedIdentifiers":13874,"failedIdentifiers":92},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-15T12:00:55.3946839+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-15T12:00:55.3946839+00:00","lastSuccessAt":"2026-11-15T12:00:55.580236+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:55.580236+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-d33b5144615b488f88b7a7390696bc39","complete":false,"records":13833,"lastAttemptAt":"2026-11-15T12:01:03.1788889+00:00","lastSuccessAt":"2026-11-15T10:02:36.038+00:00","error":"1 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-15T10:02:36.038+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13873,"expectedIdentifiers":13874,"failedIdentifiers":1},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-15T12:00:55.0947737+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:55.0947737+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-15T12:00:54.588948+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:54.588948+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-15T12:00:55.3229475+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:55.3229475+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-ff18f36f13fcca3a20a3fb9274b59b8872d18869a99071730e1e79b625c8f612","complete":true,"records":232475,"lastAttemptAt":"2026-11-15T12:00:54.6916951+00:00","lastSuccessAt":"2026-11-15T11:05:10.4195883+00:00","error":null,"lastVerifiedAt":"2026-11-15T12:00:54.6916951+00:00","snapshotPublishedAt":"2026-11-15T10:33:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}