CVE-2024-45593

Nix affected by unsafe NAR unpacking

Published Sep 10, 2024 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-41529 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.
Ubuntu USN Ubuntu USN USN-7633-1 Nix vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00222}

epss

{'score': 0.00242}

Type Values Removed Values Added
CPEs cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Nixos
Nixos nix
CPEs cpe:2.3:o:nixos:nix:*:*:*:*:*:*:*:*
Vendors & Products Nixos
Nixos nix
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Nix affected by unsafe NAR unpacking
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 10, 2024, 4:06 PM
Reserved
Sep 2, 2024, 4:00 PM
Status
Analyzed
Published
Sep 10, 2024, 4:15 PM
Modified
Jun 17, 2026, 7:54 AM