CVEfocus › CVE database › CVE-2024-45593

CVE-2024-45593Nix affected by unsafe NAR unpacking

CVSS 9.1 CriticalEPSS 0.6% (higher than 50% of CVEs)Published 2024-09-10Updated 2024-09-10Assigner: GitHub_M

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.

CWE-22

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

2Fix pending
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nixNot affected
vulnerable_code_not_present
Ubuntu 25.10nixNot affected
vulnerable_code_not_present
Ubuntu 24.04nixFix pending2.18.1+dfsg-1ubuntu5+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-45593
Ubuntu 22.04nixFix pending2.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.

References

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.