cve.bz

CVE-2024-27297 nixos nix

5.9 mediumExploit referenceEPSS 0.6%Fix available

Medium (5.9) in nixos nix. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-24. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-03-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-27297 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-27297?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-27297?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-27297 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nixos:nixbefore 2.3.18
nixos:nixfrom 2.4 before 2.18.2
nixos:nixfrom 2.19.0 before 2.19.4
nixos:nixfrom 2.20.0 before 2.20.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11guix1.2.0-4+deb11u2DSA-5669-1
Debian12guix1.4.0-3+deb12u1DSA-5669-1
Debian12nixno fix listedDEBIAN-CVE-2024-27297
Debian13, 14nix2.22.1+dfsg-1DEBIAN-CVE-2024-27297
UbuntuPro:22.04:LTSguix1.3.0-4ubuntu0.1~esm1UBUNTU-CVE-2024-27297 USN-8773-1
UbuntuPro:22.04:LTSnix2.6.0+dfsg-3ubuntu0.1~esm1USN-7633-1
UbuntuPro:24.04:LTSguix1.4.0-6ubuntu0.1~esm1USN-8773-1
UbuntuPro:24.04:LTSnix2.18.1+dfsg-1ubuntu5+esm2UBUNTU-CVE-2024-27297 USN-7633-1
Alpinev3.19, v3.20, v3.21 and 3 moreguix1.4.0-r5ALPINE-CVE-2024-27297
Alpinev3.20, v3.21, v3.22 and 2 morenix2.20.5-r0ALPINE-CVE-2024-27297

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON