CVE-2025-5791

high

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.

References

https://rustsec.org/advisories/RUSTSEC-2025-0040.html

https://github.com/ogham/rust-users/issues/44

https://crates.io/crates/users

https://bugzilla.redhat.com/show_bug.cgi?id=2370001

https://access.redhat.com/security/cve/CVE-2025-5791

Details

Source: Mitre, NVD

Published: 2025-06-06

Updated: 2025-06-09

Risk Information

CVSS v2

Base Score: 6.2

Vector: CVSS2#AV:L/AC:L/Au:S/C:C/I:C/A:N

Severity: Medium

CVSS v3

Base Score: 7.1

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Severity: High

EPSS

EPSS: 0.00005