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

Crate topgrade

Dependencies

(22 total, 13 outdated, 1 insecure)

CrateRequiredLatestStatus
 anyhow^1.0.251.0.104up to date
 chrono^0.4.60.4.45up to date
 console^0.9.00.16.6out of date
 directories^2.0.16.0.0out of date
 glob^0.3.00.3.4up to date
 lazy_static^1.3.01.5.0up to date
 log^0.4.60.4.34up to date
 nix ⚠️^0.16.10.31.3insecure
 notify-rust^3.6.34.18.0out of date
 openssl-probe^0.1.20.2.1out of date
 pretty_env_logger^0.3.00.5.0out of date
 rust-ini^0.14.00.21.3out of date
 self_update^0.8.01.3.0out of date
 serde^1.0.921.0.229up to date
 shellexpand^1.0.03.1.2out of date
 structopt^0.3.00.3.26up to date
 strum^0.17.10.28.0out of date
 tempfile^3.1.03.27.0up to date
 thiserror^1.0.92.0.20out of date
 toml^0.5.11.1.6+spec-1.1.0out of date
 walkdir^2.2.72.5.0up to date
 which^3.1.08.0.6out 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.