{"schemaVersion":3,"id":"CVE-2024-27297","aliases":["UBUNTU-CVE-2024-27297","DEBIAN-CVE-2024-27297","DSA-5669-1"],"status":"published","duplicateOf":null,"title":null,"description":"Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstract namespace. This allows to modify the output of the derivation, after Nix has registered the path as \"valid\" and immutable in the Nix database. In particular, this allows the output of fixed-output derivations to be modified from their expected content. This issue has been addressed in versions 2.3.18 2.18.2 2.19.4 and 2.20.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.","dates":{"published":"2024-03-11T21:24:43.919Z","modified":"2025-06-27T12:16:28.799Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":5.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00586,"percentile":0.47254,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00586},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00586,"percentile":0.47254}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00586,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00586,"percentile":0.47254}]},"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":[{"id":"REF_0E49240D9A9A1708","name":"Exploit Reference (hackmd.io)","source":"reference","url":"https://hackmd.io/03UGerewRcy3db44JQoWvw","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"}],"affected":[{"vendor":"debian","product":"guix","name":"guix","label":"guix","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/guix","purlType":"deb","versions":[{"text":"< 1.2.0-4+deb11u2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.4.0-3+deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.2.0-4+deb11u2 | < 1.4.0-3+deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"nix","name":"nix","label":"nix","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/nix","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.22.1+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.22.1+dfsg-1","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nix","label":"nix","category":"app"}},"hubHref":null},{"vendor":"ubuntu","product":"guix","name":"guix","label":"guix","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/guix","purlType":"deb","versions":[{"text":"< 1.3.0-4ubuntu0.1~esm1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.3.0-4ubuntu0.1~esm1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"nix","name":"nix","label":"nix","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/nix","purlType":"deb","versions":[{"text":"< 2.18.1+dfsg-1ubuntu5+esm2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 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.3.0, < 2.3.18","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.4.0, < 2.18.2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.3.18","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.4, < 2.18.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.19.0, < 2.19.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.20.0, < 2.20.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.3.0, < 2.3.18 | ≥ 2.4.0, < 2.18.2 | < 2.3.18 | ≥ 2.4, < 2.18.2 | ≥ 2.19.0, < 2.19.4 | ≥ 2.20.0, < 2.20.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"nix","label":"nix","category":"app"}},"hubHref":"/vendor/nixos/nix"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37","label":"github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Vendor Advisory"]},{"url":"https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000","label":"github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch"]},{"url":"https://hackmd.io/03UGerewRcy3db44JQoWvw","label":"hackmd.io/03UGerewRcy3db44JQoWvw","hostname":"hackmd.io","tags":["X Refsource MISC","REPORT","Exploit"]},{"url":"https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/","label":"guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/","hostname":"guix.gnu.org","tags":[]},{"url":"https://ubuntu.com/security/CVE-2024-27297","label":"ubuntu.com/security/CVE-2024-27297","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297/","label":"guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297/","hostname":"guix.gnu.org","tags":["REPORT"]},{"url":"https://github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9","label":"github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-27297","label":"www.cve.org/CVERecord?id=CVE-2024-27297","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"]},{"url":"https://ubuntu.com/security/notices/USN-8773-1","label":"ubuntu.com/security/notices/USN-8773-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-27297","label":"security-tracker.debian.org/tracker/CVE-2024-27297","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-7633-1","USN-8773-1"],"duplicates":[],"related":["USN-7633-1","USN-8773-1"]},"timeline":[{"kind":"published","date":"2024-03-11T21:24:43.919Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-27T12:16:28.799Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T22:57:37.288Z","stale":false,"partial":false}}