p PatchFirst

CVE-2024-27297

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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 6.3 · Medium · EPSS 0.6% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • nix

    Versions
    • >= 2.3.0, < 2.3.18: Affected
    • >= 2.4.0, < 2.18.2: Affected
    • >= 2.19.0, < 2.19.4: Affected
    • >= 2.20.0, < 2.20.5: Affected

    No fix published

  • nix Debian:12

    Versions
    • 2.16.1+dfsg-1
    • 2.16.1+dfsg-2
    • 2.16.1+dfsg-3
    • 2.17.1+dfsg-1
    • 2.18.1+dfsg-1
    • 2.22.1+dfsg-1
    • 2.23.3+dfsg-1
    • 2.23.3+dfsg-2
    • 2.24.12+dfsg-1
    • 2.24.8+dfsg-1
    • 2.24.9+dfsg-1
    • 2.24.9+dfsg-2
    • 2.25.4+dfsg-1
    • 2.26.3+dfsg-1
    • 2.32.5+dfsg-1
    • 2.32.5+dfsg-2
    • 2.34.3+dfsg-1
    • 2.34.6+dfsg-1
    • 2.34.8+dfsg-1
    • 2.8.0-1.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • nix Debian:13

    Affected ranges
    • ECOSYSTEM: < 2.22.1+dfsg-1

    Update to 2.22.1+dfsg-1

  • nix Debian:14

    Affected ranges
    • ECOSYSTEM: < 2.22.1+dfsg-1

    Update to 2.22.1+dfsg-1

  • guix Ubuntu:Pro:22.04:LTS

    Versions
    • 1.2.0-4
    • 1.3.0-2
    • 1.3.0-4
    Affected ranges
    • ECOSYSTEM: < 1.3.0-4ubuntu0.1~esm1

    Update to 1.3.0-4ubuntu0.1~esm1

  • nix Ubuntu:Pro:24.04:LTS

    Versions
    • 2.16.1+dfsg-3ubuntu1
    • 2.18.1+dfsg-1ubuntu1
    • 2.18.1+dfsg-1ubuntu2
    • 2.18.1+dfsg-1ubuntu4
    • 2.18.1+dfsg-1ubuntu5
    Affected ranges
    • ECOSYSTEM: < 2.18.1+dfsg-1ubuntu5+esm2

    Update to 2.18.1+dfsg-1ubuntu5+esm2

Original sources

Check your server →