{"id":"UBUNTU-CVE-2024-38531","details":"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.","modified":"2026-01-30T02:26:02.960773Z","published":"2024-06-28T14:15:00Z","related":["USN-7633-1"],"upstream":["CVE-2024-38531"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-38531"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-38531"},{"type":"REPORT","url":"https://github.com/NixOS/nix/pull/10501"},{"type":"REPORT","url":"https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7633-1"}],"affected":[{"package":{"name":"nix","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/nix@2.6.0+dfsg-3ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6.0+dfsg-3ubuntu0.1~esm1"}]}],"versions":["2.3.10+dfsg1-1","2.3.10+dfsg1-1build1","2.6.0+dfsg-2","2.6.0+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"nix-bin","binary_version":"2.6.0+dfsg-3ubuntu0.1~esm1"},{"binary_name":"nix-setup-systemd","binary_version":"2.6.0+dfsg-3ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-38531.json"}},{"package":{"name":"nix","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/nix@2.18.1+dfsg-1ubuntu5+esm2?arch=source&distro=esm-apps/noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.18.1+dfsg-1ubuntu5+esm2"}]}],"versions":["2.16.1+dfsg-3ubuntu1","2.18.1+dfsg-1ubuntu1","2.18.1+dfsg-1ubuntu2","2.18.1+dfsg-1ubuntu4","2.18.1+dfsg-1ubuntu5"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"nix-bin","binary_version":"2.18.1+dfsg-1ubuntu5+esm2"},{"binary_name":"nix-setup-systemd","binary_version":"2.18.1+dfsg-1ubuntu5+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-38531.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}