p PatchFirst

CVE-2024-45593

CVE-2024-45593 · Nix affected by unsafe NAR unpacking

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 bug in Nix 2.24 prior to 2.24.6 allows a substituter or malicious user to craft a NAR that, when unpacked by Nix, causes Nix to write to arbitrary file system locations to which the Nix process has access. This will be with root permissions when using the Nix daemon. This issue is fixed in Nix 2.24.6.

CVSS 9.1 · Critical · EPSS 0.6% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • nix

    Versions
    • >= 2.24.0, < 2.24.6: Affected

    No fix published

  • nix Ubuntu:Pro:22.04:LTS

    Versions
    • 2.3.10+dfsg1-1
    • 2.3.10+dfsg1-1build1
    • 2.6.0+dfsg-2
    • 2.6.0+dfsg-3
    Affected ranges
    • ECOSYSTEM: < 2.6.0+dfsg-3ubuntu0.1~esm1

    Update to 2.6.0+dfsg-3ubuntu0.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 →