Email me

Rust advisories / users

Vulnerability HighRUSTSEC-2025-0040 · users

RUSTSEC-2025-0040: `root` appended to group listings

Short answerA security vulnerability in the users crate: `root` appended to group listings. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.

Crateusers
TypeVulnerability (privilege-escalation)
Affected versionsFrom 0.8.0 onward (every version).
Fixed innone
SeverityHigh (GitHub rating)
Published2025-01-15
Last changed2025-10-28
Also known asCVE-2025-5791, GHSA-m65q-v92h-cm7q

What to do

  1. Find who pulls it in: cargo tree -i users.
  2. Avoid the affected API, or replace the crate.

Details from the advisory

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

  • uzers (an actively maintained fork of the users crate)
  • sysinfo

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for users

Full security history of users

Up next

Same crateusers: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ