CVE-2024-45593 Nix affected by unsafe NAR unpacking
HighCVSS 8.8
EPSS 0.60%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/nix(Ubuntu:22.04) | < 2.6.0+dfsg-3ubuntu0.1~esm1 | 2.6.0+dfsg-3ubuntu0.1~esm1 |
| NixOS Nix | = >= 2.24.0, < 2.24.6 | No fix listed |
| NixOS Nix | >= 2.24.0, < 2.24.6 | 2.24.6 |
| ubuntu/nix(Ubuntu:24.04) | < 2.18.1+dfsg-1ubuntu5+esm2 | 2.18.1+dfsg-1ubuntu5+esm2 |
References
- Ubuntu CVE tracker vendor-advisory
- USN-7633-1 vendor-advisory
- www.cve.org
- https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493 vendor-advisory
- https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59 patch
- Debian Security Tracker CVE-2024-45593 vendor-advisory