Improper Check for Unusual or Exceptional Conditions Affecting NixOS/nix package, versions [,2.3.18)[2.18.0,2.18.2)[2.19.0,2.19.4)[2.20.0,2.20.5)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.06% (29th 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-UNMANAGED-NIXOSNIX-6457144
  • published18 Mar 2024
  • disclosed18 Mar 2024
  • creditpuckipedia

Introduced: 18 Mar 2024

CVE-2024-27297  (opens in a new tab)
CWE-754  (opens in a new tab)

How to fix?

Upgrade NixOS/nix to version 2.3.18, 2.18.2, 2.19.4, 2.20.5 or higher.

Overview

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions due to fixed-output derivations on Linux being able to send file descriptors to files in the Nix store to another program running on the host via Unix domain sockets in the abstract namespace. This allows the output of fixed-output derivations to be modified from their expected content.

Note:

Since some version of Nix after 2.3, this is no longer as severe an issue: You can no longer race the daemon to convince it to remove the CA flag from a CA output and thus have it be considered non-corrupted if nix-store --verify is run.

CVSS Base Scores

version 3.1