{"schemaVersion":3,"id":"CVE-2024-45593","aliases":["UBUNTU-CVE-2024-45593"],"status":"published","duplicateOf":null,"title":null,"description":"Nix is a package manager for Linux and other Unix systems. A bug in Nix 2.24 prior to 2.24.6 allows a substituter or malicious user to craft a NAR that, when unpacked by Nix, causes Nix to write to arbitrary file system locations to which the Nix process has access. This will be with root permissions when using the Nix daemon. This issue is fixed in Nix 2.24.6.","dates":{"published":"2024-09-10T15:51:07.881Z","modified":"2024-09-10T16:06:16.016Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00602,"percentile":0.48063,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00602},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00602,"percentile":0.48063}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00602,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00602,"percentile":0.48063}]},"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"ubuntu","product":"nix","name":"nix","label":"nix","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nix","purlType":"deb","versions":[{"text":"< 2.6.0+dfsg-3ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.18.1+dfsg-1ubuntu5+esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.6.0+dfsg-3ubuntu0.1~esm1 | < 2.18.1+dfsg-1ubuntu5+esm2","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nix","label":"nix","category":"app"}},"hubHref":null},{"vendor":"nixos","product":"nix","name":"Nix","label":"nix","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.24.0, < 2.24.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.24.0, < 2.24.6","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nix","label":"nix","category":"app"}},"hubHref":"/vendor/nixos/nix"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493","label":"github.com/NixOS/nix/security/advisories/GHSA-h4vv-h3jq-v493","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59","label":"github.com/NixOS/nix/commit/eb11c1499876cd4c9c188cbda5b1003b36ce2e59","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://ubuntu.com/security/CVE-2024-45593","label":"ubuntu.com/security/CVE-2024-45593","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-45593","label":"www.cve.org/CVERecord?id=CVE-2024-45593","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7633-1","label":"ubuntu.com/security/notices/USN-7633-1","hostname":"ubuntu.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-7633-1"],"duplicates":["CVE-2024-45845"],"related":["USN-7633-1"]},"timeline":[{"kind":"published","date":"2024-09-10T15:51:07.881Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-10T16:06:16.016Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T02:21:48.539Z","stale":false,"partial":false}}