CVE-2024-38531
Nix sandbox escape
Reported by github_m · Published June 28, 2024
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| NixOS | nix | >= 2.23.0, < 2.23.1, >= 2.22.0, < 2.22.2, >= 2.21.0, < 2.21.3 |
| NixOS | nix | 2.23.0, 2.22.0, 2.21.0 |
Timeline
- Jun 28, 2024 CVE Published
- Jun 29, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (25 in total, the first dated here)
- Jan 8, 2026 Security Advisory
- Jan 8, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-38531
vulnetix vdb fixes CVE-2024-38531
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-38531/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5 x_refsource_CONFIRM
- https://github.com/NixOS/nix/pull/10501 x_refsource_MISC