← Vulnerability feed

Vulnerability record · CVE-2024-27297 · published 11 March 2024

CVE-2024-27297: Nixos nix toctou race condition vulnerability

Nixos · Nix

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.

5.9 CVSS 3.1 Medium EPSS 0.59% · top 54.2% CWE-367 · TOCTOU race condition
5.9CVSS 3.1 base score
0.59%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
7References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-27297 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2024-45593Nixos nix path traversal vulnerabilityNix is a package manager for Linux and other Unix systems. A bug in Nix 2.24 prior to 2.24.6 allows a substituter or malicious user to craft a NAR th…EPSS 0.60%8.4CVE-2026-39860Nixos nix vulnerabilityNix is a package manager for Linux and other Unix systems. A bug in the fix for CVE-2024-27297 allowed for arbitrary overwrites of files writable by …EPSS 0.18%7.8CVE-2019-17365Nixos nix incorrect default permissions vulnerabilityNix through 2.3 allows local users to gain access to an arbitrary user's account because the parent directory of the user-profile directories is worl…EPSS 0.43%5.1CVE-2015-3246libuser userhelper direct /etc/passwd write race conditionlibuser before 0.56.13-8 and 0.60 before 0.60-7, as used by the userhelper program in the usermode package, modifies /etc/passwd directly instead of …KEVEPSS 8.8%analysed7.8CVE-2025-38352Linux kernel POSIX CPU timer TOCTOU race enables local privilege escalationA time-of-check to time-of-use race exists in the Linux kernel between handle_posix_cpu_timers() and posix_cpu_timer_del(). When an exiting non-autor…KEVEPSS 1.3%analysed8.2CVE-2025-22224VMware ESXi and Workstation TOCTOU race leads to out-of-bounds writeVMware ESXi, Workstation, and related products contain a TOCTOU race condition that results in an out-of-bounds write. An attacker with local adminis…KEVEPSS 1.6%analysed7.0CVE-2024-30088Windows Kernel TOCTOU race condition privilege escalationCVE-2024-30088 is a time-of-check time-of-use (TOCTOU) race condition in the Windows kernel that allows a local user to elevate privileges. It affect…KEVEPSS 68%analysed7.0CVE-2022-48618Apple OS Pointer Authentication Bypass via TOCTOU Race ConditionA time-of-check time-of-use race condition in Apple's pointer authentication implementation allows an attacker who already holds arbitrary read and w…KEVEPSS 0.49%analysed

Source: NIST National Vulnerability Database (record CVE-2024-27297), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.