Out-of-bounds Write Affecting nix package, versions <0.23.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.3% (70th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-NIX-1727330
  • published1 Oct 2021
  • disclosed27 Sept 2021
  • creditUnknown

Introduced: 27 Sep 2021

CVE-2021-45707  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade nix to version 0.23.0 or higher.

Overview

nix is a Rust friendly bindings to *nix APIs.

Affected versions of this package are vulnerable to Out-of-bounds Write. 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.

CVSS Scores

version 3.1