CVE-2024-45593
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| nix | nixos | 2.24.6 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NixOS | nix | >= 2.24.0, < 2.24.6 |
| NixOS | nix | 2.24.0 |
| nixos | nix | 2.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
References
- https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493 x_refsource_CONFIRM
- https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59 x_refsource_MISC