// For flags

CVE-2024-38531

Nix sandbox escape

Severity Score

3.6
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

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.

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.

*Credits: N/A
CVSS Scores
Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2024-06-18 CVE Reserved
  • 2024-06-28 CVE Published
  • 2024-06-29 EPSS Updated
  • 2024-08-02 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-278: Insecure Preserved Inherited Permissions
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.23.0 < 2.23.1
Search vendor "NixOS" for product "Nix" and version " >= 2.23.0 < 2.23.1"
en
Affected
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.22.0 < 2.22.2
Search vendor "NixOS" for product "Nix" and version " >= 2.22.0 < 2.22.2"
en
Affected
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.21.0 < 2.21.3
Search vendor "NixOS" for product "Nix" and version " >= 2.21.0 < 2.21.3"
en
Affected
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.20.0 < 2.20.7
Search vendor "NixOS" for product "Nix" and version " >= 2.20.0 < 2.20.7"
en
Affected
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.19.0 < 2.19.5
Search vendor "NixOS" for product "Nix" and version " >= 2.19.0 < 2.19.5"
en
Affected
NixOS
Search vendor "NixOS"
Nix
Search vendor "NixOS" for product "Nix"
>= 2.18.0 < 2.18.4
Search vendor "NixOS" for product "Nix" and version " >= 2.18.0 < 2.18.4"
en
Affected