{"id":"CVE-2024-36050","aliases":["DEBIAN-CVE-2024-36050","EUVD-2024-35854","GHSA-2r8j-rf53-9g72","UBUNTU-CVE-2024-36050"],"status":"published","title":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers...","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","severity":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-11","score":0.00394,"percentile":0.34097,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2024-05-18T21:24:10Z","modified":"2026-11-02T12:02:34Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.16.1+dfsg-1","2.16.1+dfsg-2","2.16.1+dfsg-3","2.17.1+dfsg-1","2.18.1+dfsg-1","2.22.1+dfsg-1","2.23.3+dfsg-1","2.23.3+dfsg-2","2.24.12+dfsg-1","2.24.8+dfsg-1","2.24.9+dfsg-1","2.24.9+dfsg-2","2.25.4+dfsg-1","2.26.3+dfsg-1","2.32.5+dfsg-1","2.32.5+dfsg-2","2.34.3+dfsg-1","2.34.6+dfsg-1","2.34.8+dfsg-1","2.35.4+dfsg-1","2.8.0-1.1"]},{"source":"osv","ecosystem":"Debian:13","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.26.3+dfsg-1","2.32.5+dfsg-1","2.32.5+dfsg-2","2.34.3+dfsg-1","2.34.6+dfsg-1","2.34.8+dfsg-1","2.35.4+dfsg-1"]},{"source":"osv","ecosystem":"Debian:14","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.26.3+dfsg-1","2.32.5+dfsg-1","2.32.5+dfsg-2","2.34.3+dfsg-1","2.34.6+dfsg-1","2.34.8+dfsg-1","2.35.4+dfsg-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.10+dfsg1-1","2.3.10+dfsg1-1build1","2.6.0+dfsg-2","2.6.0+dfsg-3","2.6.0+dfsg-3ubuntu0.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","2.18.1+dfsg-1ubuntu5+esm2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.24.9+dfsg-2ubuntu2","2.26.3+dfsg-1ubuntu1","2.26.3+dfsg-1ubuntu2","2.26.3+dfsg-1ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.34.3+dfsg-1","2.34.6+dfsg-1","2.34.6+dfsg-1build1","2.34.8+dfsg-1","2.34.8+dfsg-1build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"nix","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.26.3+dfsg-1ubuntu4","2.26.3+dfsg-1ubuntu5","2.32.5+dfsg-1ubuntu3","2.32.5+dfsg-2ubuntu1","2.34.3+dfsg-1"]}],"references":[{"url":"https://github.com/NixOS/nix/issues/969","tags":["x_transferred","report"]},{"url":"https://github.com/NixOS/ofborg/issues/68#issuecomment-2082789441","tags":["x_transferred","report"]},{"url":"https://discourse.nixos.org/t/nixpkgs-supply-chain-security-project/34345","tags":["x_transferred","web"]},{"url":"https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017/26","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36050","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2r8j-rf53-9g72"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/36xxx/CVE-2024-36050.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-36050","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-36050","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-36050","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2024-36050","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T21:24:10.412Z","modified":"2025-06-27T11:59:52.999Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium","assessor":"adp"}],"updated_at":"2026-11-02T14:34:14.649724Z"}],"euvd":[{"id":"EUVD-2024-35854","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T21:24:10Z","modified":"2025-06-27T11:59:52Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:32:16.171648Z"}],"ghsa":[{"id":"GHSA-2r8j-rf53-9g72","title":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers...","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-19T00:30:45Z","modified":"2025-06-27T12:31:12Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:02:50.464937Z"}],"nvd":[{"id":"CVE-2024-36050","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T22:15:07.46Z","modified":"2026-06-17T07:36:02.107Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium","assessor":"secondary"}],"updated_at":"2026-11-02T14:10:01.327642Z"}],"osv":[{"id":"CVE-2024-36050","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T21:24:10.412Z","modified":"2026-10-28T02:30:31.493841073Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:40.704083Z"},{"id":"DEBIAN-CVE-2024-36050","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T22:15:07.46Z","modified":"2026-11-02T12:02:34.305660025Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:42.835825Z"},{"id":"UBUNTU-CVE-2024-36050","description":"Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacker-controlled source code by luring a maintainer into accepting a malicious pull request.","status":"published","published":"2024-05-18T22:15:00Z","modified":"2026-10-17T12:56:36.445832414Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:54:50.784131Z"}]}}
