{"id":"UBUNTU-CVE-2024-36050","details":"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.","modified":"2026-05-20T16:17:25.059854298Z","published":"2024-05-18T22:15:00Z","upstream":["CVE-2024-36050"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-36050"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-36050"},{"type":"REPORT","url":"https://github.com/NixOS/nix/issues/969"},{"type":"REPORT","url":"https://github.com/NixOS/ofborg/issues/68#issuecomment-2082789441"}],"affected":[{"package":{"name":"nix","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fjammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"nix-bin","binary_version":"2.6.0+dfsg-3ubuntu0.1~esm1"},{"binary_name":"nix-setup-systemd","binary_version":"2.6.0+dfsg-3ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"}},{"package":{"name":"nix","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fnoble"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"nix-bin","binary_version":"2.18.1+dfsg-1ubuntu5+esm2"},{"binary_name":"nix-setup-systemd","binary_version":"2.18.1+dfsg-1ubuntu5+esm2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"}},{"package":{"name":"nix","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nix?arch=source&distro=questing"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"2.26.3+dfsg-1ubuntu4","binary_name":"nix-bin"},{"binary_name":"nix-setup-systemd","binary_version":"2.26.3+dfsg-1ubuntu4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"}},{"package":{"name":"nix","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nix?arch=source&distro=resolute"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"2.34.3+dfsg-1","binary_name":"nix-bin"},{"binary_version":"2.34.3+dfsg-1","binary_name":"nix-setup-systemd"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-36050.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}