Skip to content
Heist/ feed
Back to feed
Critical

nix — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-39860

Nix 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 the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.

Products
nix
Affected 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, 2.18.1+dfsg-1ubuntu5+esm2, 2.24.9+dfsg-2ubuntu2, 2.26.3+dfsg-1ubuntu1, 2.26.3+dfsg-1ubuntu2, 2.26.3+dfsg-1ubuntu4, 2.26.3+dfsg-1ubuntu5, 2.3.10+dfsg1-1, 2.3.10+dfsg1-1build1, 2.32.5+dfsg-1ubuntu3, 2.32.5+dfsg-2ubuntu1, 2.34.3+dfsg-1, 2.34.6+dfsg-1, 2.34.6+dfsg-1build1, 2.34.8+dfsg-1, 2.34.8+dfsg-1build1, 2.6.0+dfsg-2, 2.6.0+dfsg-3, 2.6.0+dfsg-3ubuntu0.1~esm1
Fixed versions
Not specified
CVEs
CVE-2026-39860
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:10 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-39860

core-osv · Original source

Published 8 Apr 2026, 21:17 UTC

Nix 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 the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.

osv:UBUNTU-CVE-2026-39860

nix

Fixed versions: Not specified

nix

Fixed versions: Not specified

nix

Fixed versions: Not specified

nix

Fixed versions: Not specified

nix

Fixed versions: Not specified

Complete source record
{
  "id": "cd70768bed723477ad637cbb8ccfaa9a3ec7f8279cf2345614e66e7bdf08ca3d",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-39860",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-39860",
    "summary": "Nix 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 the Nix process orchestrating the builds (typically the Nix daemon running as root in multi-user installations) by following symlinks during fixed-output derivation output registration. This affects sandboxed Linux builds - sandboxed macOS builds are unaffected. The location of the temporary output used for the output copy was located inside the build chroot. A symlink, pointing to an arbitrary location in the filesystem, could be created by the derivation builder at that path. During output registration, the Nix process (running in the host mount namespace) would follow that symlink and overwrite the destination with the derivation's output contents. In multi-user installations, this allows all users able to submit builds to the Nix daemon (allowed-users - defaulting to all users) to gain root privileges by modifying sensitive files. This vulnerability is fixed in 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3, and 2.28.6.",
    "evidence": "osv:UBUNTU-CVE-2026-39860",
    "products": [
      {
        "name": {
          "value": "nix",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.10+dfsg1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.3.10+dfsg1-1build1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.0+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.6.0+dfsg-3ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nix",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.16.1+dfsg-3ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.18.1+dfsg-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.18.1+dfsg-1ubuntu2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.18.1+dfsg-1ubuntu4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.18.1+dfsg-1ubuntu5",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.18.1+dfsg-1ubuntu5+esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nix",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.24.9+dfsg-2ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.26.3+dfsg-1ubuntu1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.26.3+dfsg-1ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.26.3+dfsg-1ubuntu4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nix",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.34.3+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.34.6+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.34.6+dfsg-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.34.8+dfsg-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.34.8+dfsg-1build1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "nix",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.26.3+dfsg-1ubuntu4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.26.3+dfsg-1ubuntu5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.32.5+dfsg-1ubuntu3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.32.5+dfsg-2ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.34.3+dfsg-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-39860",
      "aliases": [
        "UBUNTU-CVE-2026-39860"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nix",
            "purl": "pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "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",
            "2.6.0+dfsg-3ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39860.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "nix-bin",
                "binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
              },
              {
                "binary_name": "nix-setup-systemd",
                "binary_version": "2.6.0+dfsg-3ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nix",
            "purl": "pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "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",
            "2.18.1+dfsg-1ubuntu5+esm2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39860.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "nix-bin",
                "binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
              },
              {
                "binary_name": "nix-setup-systemd",
                "binary_version": "2.18.1+dfsg-1ubuntu5+esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nix",
            "purl": "pkg:deb/ubuntu/nix?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.24.9+dfsg-2ubuntu2",
            "2.26.3+dfsg-1ubuntu1",
            "2.26.3+dfsg-1ubuntu2",
            "2.26.3+dfsg-1ubuntu4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39860.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "nix-bin",
                "binary_version": "2.26.3+dfsg-1ubuntu4"
              },
              {
                "binary_name": "nix-setup-systemd",
                "binary_version": "2.26.3+dfsg-1ubuntu4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nix",
            "purl": "pkg:deb/ubuntu/nix?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.34.3+dfsg-1",
            "2.34.6+dfsg-1",
            "2.34.6+dfsg-1build1",
            "2.34.8+dfsg-1",
            "2.34.8+dfsg-1build1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39860.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "nix-bin",
                "binary_version": "2.34.8+dfsg-1build1"
              },
              {
                "binary_name": "nix-setup-systemd",
                "binary_version": "2.34.8+dfsg-1build1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "nix",
            "purl": "pkg:deb/ubuntu/nix?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.26.3+dfsg-1ubuntu4",
            "2.26.3+dfsg-1ubuntu5",
            "2.32.5+dfsg-1ubuntu3",
            "2.32.5+dfsg-2ubuntu1",
            "2.34.3+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-39860.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "nix-bin",
                "binary_version": "2.34.3+dfsg-1"
              },
              {
                "binary_name": "nix-setup-systemd",
                "binary_version": "2.34.3+dfsg-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:14.281367172Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-39860"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-39860",
        "https://www.cve.org/CVERecord?id=CVE-2026-39860",
        "https://github.com/NixOS/nix/security/advisories/GHSA-g3g9-5vj6-r3gj"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-39860",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 358405,
  "published_at": "2026-04-08T21:17:00+00:00"
}