# CVE-2024-36050: Nix through 2.22.1 mishandles certain usage of hash caches, which makes it easier for attackers to replace current source code with attacke…

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-02)
- Published: 2024-05-18T21:24:10.412Z
- Modified: 2026-06-17T07:36:02.107Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://github.com/NixOS/nix/issues/969>
- <https://github.com/NixOS/ofborg/issues/68#issuecomment-2082789441>
- <https://discourse.nixos.org/t/nixpkgs-supply-chain-security-project/34345>
- <https://discourse.nixos.org/t/security-advisory-privilege-escalations-in-nix-lix-and-guix/66017/26>

## Sources

- CVE List: [CVE-2024-36050](https://www.cve.org/CVERecord?id=CVE-2024-36050), CVE Terms of Use, modified 2025-06-27
- NVD: [CVE-2024-36050](https://nvd.nist.gov/vuln/detail/CVE-2024-36050), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-36050 · Whole record: https://cve.day/CVE-2024-36050.json · Rebuilt by cve.day 2026-11-25T22:58:40.567Z
