CVEfocus › CVE database › CVE-2024-38531

CVE-2024-38531Nix sandbox escape

CVSS 3.6 LowEPSS 0.2% (higher than 6% of CVEs)Published 2024-06-28Updated 2024-08-02Assigner: GitHub_M

Nix is a package manager for Linux and other Unix systems that makes package management reliable and reproducible. A build process has access to and can change the permissions of the build directory. After creating a setuid binary in a globally accessible location, a malicious local user can assume the permissions of a Nix daemon worker and hijack all future builds. This issue was patched in version(s) 2.23.1, 2.22.2, 2.21.3, 2.20.7, 2.19.5 and 2.18.4.

CWE-278

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Debian, Ubuntu have 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

2Fixed
3Fix 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-38531
Ubuntu 22.04nixFix pending2.6.0+dfsg-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-38531
Debian 14nixFixed2.23.3+dfsg-1DEBIAN-CVE-2024-38531
Debian 13nixFixed2.23.3+dfsg-1DEBIAN-CVE-2024-38531
Debian 12nixFix pendingDEBIAN-CVE-2024-38531

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.