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.
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.
bat(23 total, 9 outdated, 1 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| ansi_colours | ^1.0 | 1.2.3 | up to date |
| ansi_term | ^0.12.1 | 0.12.1 | up to date |
| atty | ^0.2.14 | 0.2.14 | up to date |
| bugreport | ^0.4 | 0.5.1 | out of date |
| clap | ^2.33 | 4.5.53 | out of date |
| clircle | ^0.3 | 0.6.1 | out of date |
| console | ^0.14.1 | 0.16.1 | out of date |
| content_inspector | ^0.2.4 | 0.2.4 | up to date |
| dirs-next | ^2.0.0 | 2.0.0 | up to date |
| encoding | ^0.2 | 0.2.33 | up to date |
| error-chain | ^0.12 | 0.12.4 | up to date |
| git2 | ^0.13 | 0.20.3 | out of date |
| globset | ^0.4 | 0.4.18 | up to date |
| grep-cli | ^0.1.6 | 0.1.12 | up to date |
| lazy_static | ^1.4 | 1.5.0 | up to date |
| path_abs | ^0.5 | 0.5.1 | up to date |
| semver | ^0.11 | 1.0.27 | out of date |
| serde | ^1.0 | 1.0.228 | up to date |
| serde_yaml ⚠️ | ^0.8 | 0.9.34+deprecated | out of date |
| shell-words | ^1.0.0 | 1.1.1 | up to date |
| syntect | ^4.5.0 | 5.3.0 | out of date |
| unicode-width | ^0.1.8 | 0.2.2 | out of date |
| wild | ^2.0 | 2.2.1 | up to date |
(6 total, 4 outdated, 1 possibly insecure)
| Crate | Required | Latest | Status |
|---|---|---|---|
| assert_cmd | ^1.0.5 | 2.1.1 | out of date |
| nix ⚠️ | ^0.21.0 | 0.30.1 | out of date |
| predicates | ^1.0.7 | 3.1.3 | out of date |
| serial_test | ^0.5.1 | 3.2.0 | out of date |
| tempfile | ^3.2.0 | 3.23.0 | up to date |
| wait-timeout | ^0.2.0 | 0.2.1 | up to date |
serde_yaml: Uncontrolled recursion leads to abort in deserializationAffected 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::getgrouplistOn 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.