# CVE-2024-45593: Nix affected by unsafe NAR unpacking

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-02)
- Published: 2024-09-10T15:51:07.881Z
- Modified: 2026-06-17T07:54:32.030Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- NixOS nix: >= 2.24.0, < 2.24.6; from 2.24.0 before 2.24.6

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493> (vendor-advisory)
- <https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59> (patch)

## Sources

- CVE List: [CVE-2024-45593](https://www.cve.org/CVERecord?id=CVE-2024-45593), CVE Terms of Use, modified 2024-09-10
- NVD: [CVE-2024-45593](https://nvd.nist.gov/vuln/detail/CVE-2024-45593), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45593 · Whole record: https://cve.day/CVE-2024-45593.json · Rebuilt by cve.day 2026-11-25T22:58:45.246Z
