This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate wl-clipboard-rs

Dependencies

(15 total, 7 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 derive-new^0.50.7.0out of date
 derive_more^0.991.0.0out of date
 exitfailure^0.50.5.1up to date
 failure^0.10.1.8up to date
 libc^0.20.2.162up to date
 log^0.40.4.22up to date
 mime_guess^22.0.5up to date
 nix ⚠️^0.180.29.0out of date
 os_pipe^0.91.2.1out of date
 stderrlog^0.40.6.0out of date
 structopt^0.30.3.26up to date
 tempfile^33.14.0up to date
 tree_magic^0.20.2.3up to date
 wayland-client^0.270.31.7out of date
 wayland-protocols^0.270.32.5out of date

Dev dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 wayland-protocols^0.270.32.5out of date
 wayland-server^0.270.31.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.