3.6low
Nix sandbox escape
- Severity
- 3.6low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.20% (higher than 6% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Nix es un administrador de paquetes para Linux y otros sistemas Unix que hace que la administración de paquetes sea confiable y reproducible. Un proceso de compilación tiene acceso y puede cambiar los permisos del directorio de compilación. Después de crear un binario setuid en una ubicación accesible globalmente, un usuario local malicioso puede asumir los permisos de un daemon trabajador de Nix y secuestrar todas las compilaciones futuras. Este problema se solucionó en las versiones 2.23.1, 2.22.2, 2.21.3, 2.20.7, 2.19.5 y 2.18.4.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38531 changed 2024-08-02 | CVE Terms of Use |
| NVD | CVE-2024-38531 changed 2026-06-17 | Public domain |