CVE-2024-45593

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*

History

15 Jan 2025, 14:29

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 8.8
v2 : unknown
v3 : 9.0
CPE cpe:2.3:o:nixos:nix:*:*:*:*:*:*:*:* cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*

20 Sep 2024, 19:57

Type Values Removed Values Added
First Time Nixos nix
Nixos
References () https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59 - () https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59 - Patch
References () https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493 - () https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493 - Vendor Advisory
CPE cpe:2.3:o:nixos:nix:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : 9.0
v2 : unknown
v3 : 8.8
Summary
  • (es) Nix es un gestor de paquetes para Linux y otros sistemas Unix. Un error en Nix 2.24 anterior a 2.24.6 permite que un sustituto o un usuario malintencionado cree un NAR que, cuando Nix lo descomprime, hace que Nix escriba en ubicaciones arbitrarias del sistema de archivos a las que el proceso Nix tiene acceso. Esto se hará con permisos de superusuario cuando se utilice el daemon Nix. Este problema se solucionó en Nix 2.24.6.

10 Sep 2024, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-09-10 16:15

Updated : 2025-01-15 14:29


NVD link : CVE-2024-45593

Mitre link : CVE-2024-45593

CVE.ORG link : CVE-2024-45593


JSON object : View

Products Affected

nixos

  • nix
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')