# CVE-2024-27297: Nix Corruption of fixed-output derivations

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`
- 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.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-11T21:24:43.919Z
- Modified: 2026-06-17T07:19:35.820Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- NixOS nix: >= 2.3.0, < 2.3.18; >= 2.4.0, < 2.18.2; >= 2.19.0, < 2.19.4; >= 2.20.0, < 2.20.5; before 2.3.18; from 2.4 before 2.18.2; from 2.19.0 before 2.19.4; from 2.20.0 before 2.20.5

## Every score

- GitHub_M: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://hackmd.io/03UGerewRcy3db44JQoWvw> (exploit)
- <https://github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37> (vendor-advisory)
- <https://github.com/NixOS/nix/commit/f8170ce9f119e5e6724eb81ff1b5a2d4c0024000> (patch)
- <https://guix.gnu.org/en/blog/2025/privilege-escalation-vulnerabilities-2025/>

## Sources

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

---

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