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. Learn more

Threat Intelligence

EPSS
0.07% (34th 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 Learn

Learn about Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-NIXOSNIX-7925476
  • published10 Sept 2024
  • disclosed10 Sept 2024
  • creditpuckipedia

Introduced: 10 Sep 2024

CVE-2024-45593  (opens in a new tab)
CWE-22  (opens in a new tab)

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