UBUNTU-CVE-2026-64846

Source
https://ubuntu.com/security/CVE-2026-64846
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-64846.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-64846
Upstream
Published
2026-08-20T17:19:00Z
Modified
2026-09-02T19:35:33Z
Severity
  • 2.8 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:N/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

Nix is a package manager for Linux and other Unix systems. Prior to 2.35.0, a malicious derivation executed with the recursive-nix experimental feature can exploit a time-of-check/time-of-use race involving final symlink handling in the LocalStore restore path. The race can cause writeFile to follow a substituted final symlink when opening a path with O_TRUNC instead of enforcing FinalSymlink::DontFollow, allowing the Nix process or nix-daemon to create or truncate an empty file outside the build sandbox with the daemon user's permissions. The primitive does not provide arbitrary-content writes and requires winning the race. This issue is fixed in version 2.35.0.

References

Affected packages

Ubuntu:Pro:22.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fjammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
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

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-64846.json"

Ubuntu:Pro:24.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix?arch=source&distro=esm-apps%2Fnoble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
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

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-64846.json"

Ubuntu:26.04:LTS / nix

Package

Name
nix
Purl
pkg:deb/ubuntu/nix?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

2.*
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

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-64846.json"