CVE-2024-38531
lowpriority · track · 0EPSS 0.001 · 4 %ileEUEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (6)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-38531/cnnvd
- https://github.com/NixOS/nix/pull/10501cnnvd
- https://github.com/NixOS/nix/releases/tag/2.23.1Patchcnnvd
- https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5cnnvd
- https://vigilance.fr/vulnerability/Nix-privilege-escalation-via-Setuid-Binary-47700cnnvd
- https://github.com/NixOS/nix/pull/10501enisa_euvd
- https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5enisa_euvd
- https://github.com/NixOS/nix/pull/10501nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan