Path Traversal Affecting nixos/nix package, versions [2.24,2.24.6)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.07% (33rd 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 ID SNYK-UNMANAGED-NIXOSNIX-7925476
  • published 10 Sep 2024
  • disclosed 10 Sep 2024
  • credit puckipedia

How to fix?

Upgrade nixos/nix to version 2.24.6 or higher.

Overview

Affected versions of this package are vulnerable to Path Traversal through the mishandling of a directory containing a symlink and a directory of the same name. An attacker can access or modify files outside of the restricted directory by crafting a malicious nar file containing symlinks.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
9.3 critical
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    High
  • Integrity (VI)
    High
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None