This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate pueue

Dependencies

(23 total, 13 outdated, 2 insecure)

CrateRequiredLatestStatus
 anyhow^11.0.104up to date
 async-std^11.13.2up to date
 byteorder^11.5.0up to date
 bytes^0.51.12.1out of date
 chrono^0.40.4.45up to date
 chrono-english^0.1.00.2.1out of date
 comfy-table^0.1.08.0.1out of date
 config^0.100.15.27out of date
 crossterm^0.160.29.0out of date
 dirs^27.0.0out of date
 log^0.40.4.34up to date
 nix ⚠️^0.170.31.3insecure
 rand^0.70.10.3out of date
 serde^1.01.0.229up to date
 serde_derive^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 serde_yaml^0.80.9.34+deprecatedout of date
 simplelog^0.70.12.2out of date
 structopt^0.30.3.26up to date
 strum^0.180.28.0out of date
 strum_macros^0.180.28.0out of date
 tempfile^33.27.0up to date
 users ⚠️^0.90.11.0insecure

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 proptest^0.91.11.0out of date

Security Vulnerabilities

nix: Out-of-bounds write in nix::unistd::getgrouplist

RUSTSEC-2021-0119

On certain platforms, if a user has more than 16 groups, the nix::unistd::getgrouplist function will call the libc getgrouplist function with a length parameter greater than the size of the buffer it provides, resulting in an out-of-bounds write and memory corruption.

The libc getgrouplist function takes an in/out parameter ngroups specifying the size of the group buffer. When the buffer is too small to hold all of the requested user's group memberships, some libc implementations, including glibc and Solaris libc, will modify ngroups to indicate the actual number of groups for the user, in addition to returning an error. The version of nix::unistd::getgrouplist in nix 0.16.0 and up will resize the buffer to twice its size, but will not read or modify the ngroups variable. Thus, if the user has more than twice as many groups as the initial buffer size of 8, the next call to getgrouplist will then write past the end of the buffer.

The issue would require editing /etc/groups to exploit, which is usually only editable by the root user.

users: `root` appended to group listings

RUSTSEC-2025-0040

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