VDB

CVE-2024-45593

CVE-2024-45593 PUBLISHED CVSS 9.1 CRITICAL

Nix affected by unsafe NAR unpacking

Reported by github_m · Published September 10, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
nixnixos2.24.6

Risk scores

CVSS 3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
NixOSnix>= 2.24.0, < 2.24.6
NixOSnix2.24.0
nixosnix2.24.0

Timeline

  • Sep 10, 2024 CVE Published
  • Sep 10, 2024 PoC Published (4 in total, the first dated here)
  • Sep 11, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 5, 2024 Coalition ESS Score (10 in total, the first dated here)
  • Jan 5, 2026 Security Advisory
  • Jan 5, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-45593
vulnetix vdb fixes CVE-2024-45593

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-45593/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›