Skip to main content
← All vulnerabilities
CVE-2024-45593

Nix affected by unsafe NAR unpacking

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.24.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • NixOS nix

    From 2.24.0 · fixed in 2.24.6

References 2

GitHub · NixOS/nix