CVE-2024-45593Nix affected by unsafe NAR unpacking
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | nix | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | nix | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | nix | Fix pending | 2.18.1+dfsg-1ubuntu5+esm2 (Ubuntu Pro) | UBUNTU-CVE-2024-45593 |
| Ubuntu 22.04 | nix | Fix pending | 2.6.0+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-45593 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NixOS nix: affected: >= 2.24.0, < 2.24.6
References
- https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493
- https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.