CVE-2024-27297 | Nix Corruption of fixed-output derivations

Exp

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.

Published: 2024-03-11 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-27297 is rated Exploit Available (55.9/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.59%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-27297

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-27297

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.05% 0.59% +0.54%
2 2025-11-21 0.24% 0.05% -0.19%
3 2025-11-18 0.24%

Full EPSS history (13 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-27297

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.3 3.1 MEDIUM
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L Click to expand
Attack vector (AV:A)
Attacker has to be nearby on the network—same office, same link, that vibe—not the whole wide internet.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
2.1 4.2 [email protected]
5.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 3.6 [email protected]

Weakness enumeration for CVE-2024-27297

OS Trackers for CVE-2024-27297

vendor priority summary link
alpine medium CVE-2024-27297: 2 source package rows (guix, nix); 9 state rows across 5 repos (3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 9, open 0. https://security.alpinelinux.org/vuln/CVE-2024-27297
debian not yet assigned CVE-2024-27297 not yet assigned priority: Debian including 2 source packages (guix, nix), 7 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5, open 2. https://security-tracker.debian.org/tracker/CVE-2024-27297
ubuntu medium CVE-2024-27297 medium priority: Ubuntu including 2 source packages (guix, nix), 16 status rows across 8 suites (focal, jammy, mantic, noble, oracular, plucky, questing, upstream): not-affected 6, DNE 3, ignored 3, released 3, needs-triage 1. https://ubuntu.com/security/CVE-2024-27297

Affected software / configurations for CVE-2024-27297

Vendor Product Version Raw CPE
nixos nix < 2.3.18 cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
nixos nix >= 2.4, < 2.18.2 cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
nixos nix >= 2.19.0, < 2.19.4 cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*
nixos nix >= 2.20.0, < 2.20.5 cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*

References for CVE-2024-27297

cvelogic Threat Intelligence