{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-38531","id":"CVE-2024-38531","title":"Nix sandbox escape","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 versi","descriptionLong":"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.","published":"2024-06-28T13:18:58.604Z","updated":"2026-10-28T02:31:08.060687337Z","reserved":"2024-06-18T16:37:02.729Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.6,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":3.6,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.6,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"low","source":"github.com"},{"version":"3.1","score":3.6,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L","rating":"low","source":"OSV"}],"rating":"low","products":["NixOS nix"],"affectedProducts":[{"vendor":"NixOS","product":"nix","defaultStatus":null,"versions":[{"version":">= 2.23.0, < 2.23.1","status":"affected"},{"version":">= 2.22.0, < 2.22.2","status":"affected"},{"version":">= 2.21.0, < 2.21.3","status":"affected"},{"version":">= 2.20.0, < 2.20.7","status":"affected"},{"version":">= 2.19.0, < 2.19.5","status":"affected"},{"version":">= 2.18.0, < 2.18.4","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-278"],"aliases":["GHSA-q82p-44mg-mgh5"],"references":[{"url":"https://github.com/NixOS/nix/security/advisories/GHSA-q82p-44mg-mgh5","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"https://github.com/NixOS/nix/pull/10501","tags":["x_refsource_MISC","x_transferred","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38531.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38531","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00143,"epssPercentile":0.03732,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-38531","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38531","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-38531","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-38531","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}