CVE-2024-38531
published low CVSS 3.1 · 3.6Nix sandbox escape
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| NixOS | — | nix>= 2.23.0, < 2.23.1 · >= 2.22.0, < 2.22.2 · >= 2.21.0, < 2.21.3 · >= 2.20.0, < 2.20.7 · >= 2.19.0, < 2.19.5 · >= 2.18.0, < 2.18.4 | Affected | Not stated | GitHub_M |
| Ubuntu | jammy | nix | Advisory build | 2.6.0+dfsg-3ubuntu0.1~esm1 | USN-7633-1 |
| Ubuntu | noble | nix | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
| Ubuntu | jammy | nix-bin | Advisory build | 2.6.0+dfsg-3ubuntu0.1~esm1 | USN-7633-1 |
| Ubuntu | jammy | nix-setup-systemd | Advisory build | 2.6.0+dfsg-3ubuntu0.1~esm1 | USN-7633-1 |
| Ubuntu | noble | nix-bin | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
| Ubuntu | noble | nix-setup-systemd | Advisory build | 2.18.1+dfsg-1ubuntu5+esm2 | USN-7633-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.6 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| NixOS | nix | >= 2.23.0, < 2.23.1 (affected)>= 2.22.0, < 2.22.2 (affected)>= 2.21.0, < 2.21.3 (affected)>= 2.20.0, < 2.20.7 (affected)>= 2.19.0, < 2.19.5 (affected)>= 2.18.0, < 2.18.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-278 CWE-278: Insecure Preserved Inherited Permissions
References
2Provider assertions
3GitHub_M · cna
Nix sandbox escape
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 447d79126c9f447efdfa637422ad15f636ce12f8c821d58731a52811ac290872
- Ingested
- 23 Sep 2026, 08:24:49 UTC
- Source record
- Official CVE record