CVEfocus › CVE database › CVE-2024-27297

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

CVSS 6.3 MediumEPSS 0.7% (higher than 49% of CVEs)Published 2024-03-11Updated 2025-06-27Assigner: GitHub_M

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.

CWE-367

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
3Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nixNot affected
vulnerable_code_not_present
Ubuntu 25.10nixNot affected
vulnerable_code_not_present
Ubuntu 24.04nixFix pending2.18.1+dfsg-1ubuntu5+esm2 (Ubuntu Pro)UBUNTU-CVE-2024-27297
Ubuntu 22.04guixFix pending1.3.0-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-27297
Debian 14nixFixed2.22.1+dfsg-1DEBIAN-CVE-2024-27297
Debian 13nixFixed2.22.1+dfsg-1DEBIAN-CVE-2024-27297
Debian 12nixFix pendingDEBIAN-CVE-2024-27297
Alpine Linux 3.24guixFixed1.4.0-r5ALPINE-CVE-2024-27297
Alpine Linux 3.24nixFixed2.20.5-r0ALPINE-CVE-2024-27297
Alpine Linux 3.23guixFixed1.4.0-r5ALPINE-CVE-2024-27297
Alpine Linux 3.23nixFixed2.20.5-r0ALPINE-CVE-2024-27297
Alpine Linux 3.22guixFixed1.4.0-r5ALPINE-CVE-2024-27297
Alpine Linux 3.22nixFixed2.20.5-r0ALPINE-CVE-2024-27297
Alpine Linux 3.21guixFixed1.4.0-r5ALPINE-CVE-2024-27297
Alpine Linux 3.21nixFixed2.20.5-r0ALPINE-CVE-2024-27297
Alpine Linux 3.20guixFixed1.4.0-r5ALPINE-CVE-2024-27297
Alpine Linux 3.20nixFixed2.20.5-r0ALPINE-CVE-2024-27297
Alpine Linux 3.19guixFixed1.4.0-r5ALPINE-CVE-2024-27297

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.