{"id":"UBUNTU-CVE-2025-5791","details":"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.","modified":"2026-01-20T18:50:36.006509Z","published":"2025-06-06T14:15:00Z","upstream":["CVE-2025-5791"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-5791"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-5791"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2025-5791"},{"type":"REPORT","url":"https://crates.io/crates/users"},{"type":"REPORT","url":"https://rustsec.org/advisories/RUSTSEC-2025-0040.html"}],"affected":[{"package":{"name":"rust-users","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/rust-users@0.9.1-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-users+default-dev","binary_version":"0.9.1-1"},{"binary_name":"librust-users-dev","binary_version":"0.9.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5791.json"}},{"package":{"name":"rust-users","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/rust-users@0.11.0-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-users+default-dev","binary_version":"0.11.0-1"},{"binary_name":"librust-users-dev","binary_version":"0.11.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5791.json"}},{"package":{"name":"rust-users","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/rust-users@0.11.0-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"librust-users+default-dev","binary_version":"0.11.0-1"},{"binary_name":"librust-users-dev","binary_version":"0.11.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-5791.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}