Directory Traversal Affecting nix package, versions <2.6.0+dfsg-3ubuntu0.1~esm1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.6% (47th 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-UBUNTU2204-NIX-7931890
  • published26 Jun 2025
  • disclosed10 Sept 2024

Introduced: 10 Sep 2024

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

How to fix?

Upgrade Ubuntu:22.04 nix to version 2.6.0+dfsg-3ubuntu0.1~esm1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nix package and not the nix package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

Nix is a package manager for Linux and other Unix systems. A bug in Nix 2.24 prior to 2.24.6 allows a substituter or malicious user to craft a NAR that, when unpacked by Nix, causes Nix to write to arbitrary file system locations to which the Nix process has access. This will be with root permissions when using the Nix daemon. This issue is fixed in Nix 2.24.6.

CVSS Base Scores

version 3.1