CVE-2024-38531: Nix · A build process has access to and can change the permissions of the build directory
Affects nixSource GCVE Database
Not known to be exploited · CVSS 3.6 Low · fixed in 2.6.0+dfsg-3ubuntu0.1~esm1 : update nix when convenient.
Data as of 24 Nov 2026, 19:27 UTC
- Patch
- Available – fixed in 2.6.0+dfsg-3ubuntu0.1~esm1, 2.18.1+dfsg-1ubuntu5+esm2
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 28 Jun 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu nix to 2.6.0+dfsg-3ubuntu0.1~esm1 (package) or 2.18.1+dfsg-1ubuntu5+esm2 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu Pro 24.04 LTSnixpkg:deb/ubuntu/nix?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSnixpkg:deb/ubuntu/nix?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2024-38531 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-38531 (opens in a new tab)
- github.com/NixOS/nix/pull/10501 (opens in a new tab)
- github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7633-1 (opens in a new tab)