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 bat

Dependencies

(23 total, 9 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 ansi_colours^1.01.2.3up to date
 ansi_term^0.12.10.12.1up to date
 atty^0.2.140.2.14up to date
 bugreport^0.40.5.0out of date
 clap^2.334.5.19out of date
 clircle^0.30.5.0out of date
 console^0.14.10.15.8out of date
 content_inspector^0.2.40.2.4up to date
 dirs-next^2.0.02.0.0up to date
 encoding^0.20.2.33up to date
 error-chain^0.120.12.4up to date
 git2^0.130.19.0out of date
 globset^0.40.4.15up to date
 grep-cli^0.1.60.1.11up to date
 lazy_static^1.41.5.0up to date
 path_abs^0.50.5.1up to date
 semver^0.111.0.23out of date
 serde^1.01.0.210up to date
 serde_yaml ⚠️^0.80.9.34+deprecatedout of date
 shell-words^1.0.01.1.0up to date
 syntect^4.5.05.2.0out of date
 unicode-width^0.1.80.2.0out of date
 wild^2.02.2.1up to date

Dev dependencies

(6 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 assert_cmd^1.0.52.0.16out of date
 nix ⚠️^0.21.00.29.0out of date
 predicates^1.0.73.1.2out of date
 serial_test^0.5.13.1.1out of date
 tempfile^3.2.03.13.0up to date
 wait-timeout^0.2.00.2.0up to date

Security Vulnerabilities

serde_yaml: Uncontrolled recursion leads to abort in deserialization

RUSTSEC-2018-0005

Affected versions of this crate did not properly check for recursion while deserializing aliases.

This allows an attacker to make a YAML file with an alias referring to itself causing an abort.

The flaw was corrected by checking the recursion depth.

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.