CVE-2024-38531Insecure Preserved Inherited Permissions in NIX

Severity
3.6LOWNVD
OSV5.9
EPSS
0.0%
top 94.08%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedJun 28
Latest updateJul 14

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.

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:LExploitability: 1.0 | Impact: 2.5

Affected Packages4 packages

debiandebian/nix< nix 2.23.3+dfsg-1 (forky)
Debiannixos/nix< 2.23.3+dfsg-1+1
Ubuntunixos/nix< 2.6.0+dfsg-3ubuntu0.1~esm1+1
CVEListV5nixos/nix6 versions+5

🔴Vulnerability Details

2
OSV
nix vulnerabilities2025-07-14
OSV
CVE-2024-38531: Nix is a package manager for Linux and other Unix systems that makes package management reliable and reproducible2024-06-28

📋Vendor Advisories

2
Ubuntu
Nix vulnerabilities2025-07-14
Debian
CVE-2024-38531: nix - Nix is a package manager for Linux and other Unix systems that makes package man...2024