{"schemaVersion":3,"id":"CVE-2024-51481","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Nix is a package manager for Linux and other Unix systems. On macOS, built-in builders (such as `builtin:fetchurl`, exposed to users with `import <nix/fetchurl.nix>`) were not executed in the macOS sandbox. Thus, these builders (which are running under the `nixbld*` users) had read access to world-readable paths and write access to world-writable paths outside of the sandbox. This issue is fixed in 2.18.9, 2.19.7, 2.20.9, 2.21.5, 2.22.4, 2.23.4, and 2.24.10. Note that sandboxing is not enabled by default on macOS. The Nix sandbox is not primarily intended as a security mechanism, but as an aid to improve reproducibility and purity of Nix builds. However, sandboxing *can* mitigate the impact of other security issues by limiting what parts of the host system a build has access to.","dates":{"published":"2024-10-31T16:10:22.398Z","modified":"2024-10-31T16:51:59.101Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":1,"severity":"low","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":1,"severity":"low","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":1,"severity":"low","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00171,"percentile":0.06108,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00171},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00171,"percentile":0.06108}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00171,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00171,"percentile":0.06108}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-693","name":"Protection Mechanism Failure","description":"The product does not use or incorrectly uses a protection mechanism that provides sufficient defense against directed attacks against the product.","type":"weakness","status":"Draft","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/693.html"}],"affected":[{"vendor":"nixos","product":"nix","name":"Nix","label":"nix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.18.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.19.0, < 2.19.7, 2.20.9, 2.21.5, 2.22.4, 2.23.4, 2.24.10","noFixRecorded":true,"fixedIn":null},{"text":"≥ 2.20.0, < 2.20.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.21.0, < 2.21.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.22.0, < 2.22.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.23.0, < 2.23.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.24.0, < 2.24.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.18.9 | ≥ 2.19.0, < 2.19.7, 2.20.9, 2.21.5, 2.22.4, 2.23.4, 2.24.10 (No fix recorded) | ≥ 2.20.0, < 2.20.9 | ≥ 2.21.0, < 2.21.5 | ≥ 2.22.0, < 2.22.4 | ≥ 2.23.0, < 2.23.4 | ≥ 2.24.0, < 2.24.10","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nix","label":"nix","category":"app"}},"hubHref":"/vendor/nixos/nix"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/NixOS/nix/security/advisories/GHSA-wf4c-57rh-9pjg","label":"github.com/NixOS/nix/security/advisories/GHSA-wf4c-57rh-9pjg","hostname":"github.com","tags":["X Refsource CONFIRM"]},{"url":"https://github.com/NixOS/nix/commit/597fcc98e18e3178734d06a9e7306250e8cb8d74","label":"github.com/NixOS/nix/commit/597fcc98e18e3178734d06a9e7306250e8cb8d74","hostname":"github.com","tags":["X Refsource MISC"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-10-31T16:10:22.398Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-10-31T16:51:59.101Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":4,"level":"minimal","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T16:38:18.769Z","stale":false,"partial":false}}