CVE-2024-27297: nixos nix
Vulnerability summary
CVE-2024-27297 is a medium (CVSS 6.3) vulnerability in nixos nix. EPSS estimates a 0.59% chance of exploitation in the next 30 days, higher than 47.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 11-03-2024PublishedVulnerability first disclosed.
- 27-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
- NVDNIST5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:NDiffers
EPSS trend
Probability
0.59%
Chance of exploitation in the next 30 days
Percentile
47%
Versus all other CVEs
30-day change
0.00 pp
From 0.59% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (hackmd.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian2 products
- guix< 1.2.0-4+deb11u2 | < 1.4.0-3+deb12u1
- nixAll versions (No fix recorded) | < 2.22.1+dfsg-1
Ubuntu2 products
- guix< 1.3.0-4ubuntu0.1~esm1
- nix< 2.18.1+dfsg-1ubuntu5+esm2
Nixos1 product
- nix≥ 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
3 vendors · 5 products
References
11 links- github.com/NixOS/nix/security/advisories/GHSA-2ffj-w4mj-pg37X Refsource CONFIRMREPORTVendor Advisory