Skip to main content
VulnerabilityPublished Updated

CVE-2024-38531: Nix · A build process has access to and can change the permissions of the build directory

Affects nixSource GCVE Database

0
Compare

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

CVSS 3.1 base score
3.6Low
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu Pro 24.04 LTSnixpkg:deb/ubuntu/nix?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <2.18.1+dfsg-1ubuntu5+esm2
Fixed in
  • 2.18.1+dfsg-1ubuntu5+esm2
Ubuntu Pro 22.04 LTSnixpkg:deb/ubuntu/nix?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <2.6.0+dfsg-3ubuntu0.1~esm1
Fixed in
  • 2.6.0+dfsg-3ubuntu0.1~esm1

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

Community reviews

Loading reviews…