« Volver al listado

CVE-2026-39860

Estado: AnalizadaAlta (8.4)—

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.

Leer descripción completaMostrar menos

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.

CVSS

Probabilidad de explotación (EPSS)

EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).

🎯 Técnicas ATT&CK

Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.

Vulnerabilidad local de escalada de privilegios (AV:L, PR:L) explotando symlinks en el proceso Nix daemon. Permite sobrescritura arbitraria de archivos (T1565.001) y obtención de privilegios root (T1548) en instalaciones multi-usuario.

Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.

🛡️ Mitigaciones ATT&CK que cubren estas técnicas

Tecnologías afectadas (1)

CWE

Referencias

JSON original (NVD)

Mostrar
{
  "id": "CVE-2026-39860",
  "cveTags": [],
  "metrics": {
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2026-39860",
          "role": "CISA Coordinator",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "version": "2.0.3",
          "timestamp": "2026-04-09T13:42:26.389636Z"
        }
      }
    ],
    "cvssMetricV31": [
      {
        "type": "Secondary",
        "source": "security-advisories@github.com",
        "cvssData": {
          "scope": "CHANGED",
          "version": "3.1",
          "baseScore": 9,
          "attackVector": "LOCAL",
          "baseSeverity": "CRITICAL",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N",
          "integrityImpact": "HIGH",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "NONE",
          "privilegesRequired": "NONE",
          "confidentialityImpact": "HIGH"
        },
        "impactScore": 5.8,
        "exploitabilityScore": 2.5
      },
      {
        "type": "Primary",
        "source": "nvd@nist.gov",
        "cvssData": {
          "scope": "CHANGED",
          "version": "3.1",
          "baseScore": 8.4,
          "attackVector": "LOCAL",
          "baseSeverity": "HIGH",
          "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N",
          "integrityImpact": "HIGH",
          "userInteraction": "NONE",
          "attackComplexity": "LOW",
          "availabilityImpact": "NONE",
          "privilegesRequired": "LOW",
          "confidentialityImpact": "HIGH"
        },
        "impactScore": 5.8,
        "exploitabilityScore": 2
      }
    ]
  },
  "affected": [
    {
      "source": "security-advisories@github.com",
      "affectedData": [
        {
          "vendor": "NixOS",
          "product": "nix",
          "versions": [
            {
              "status": "affected",
              "version": ">= 2.21, < 2.28.6"
            },
            {
              "status": "affected",
              "version": ">= 2.29.0, < 2.29.3"
            },
            {
              "status": "affected",
              "version": ">= 2.30.0, < 2.30.4"
            },
            {
              "status": "affected",
              "version": ">= 2.31.0, < 2.31.4"
            },
            {
              "status": "affected",
              "version": ">= 2.32.0, < 2.32.7"
            },
            {
              "status": "affected",
              "version": ">= 2.33.0, < 2.33.4"
            },
            {
              "status": "affected",
              "version": ">= 2.34.0, < 2.34.5"
            },
            {
              "status": "affected",
              "version": ">= 2.20.5, <= 2.20.9"
            },
            {
              "status": "affected",
              "version": ">= 2.19.4, <= 2.19.7"
            },
            {
              "status": "affected",
              "version": ">= 2.18.2, <= 2.18.9"
            }
          ]
        }
      ]
    }
  ],
  "published": "2026-04-08T21:17:00.157",
  "references": [
    {
      "url": "https://github.com/NixOS/nix/commit/244f3eee0bbc7f11e9b383a15ed7368e2c4becc9",
      "tags": [
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/NixOS/nix/commit/4bc5a3510fa3735798f9ed3a2a30a3ea7b32343a",
      "tags": [
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/NixOS/nix/commit/7794354a982449927ee7401cdeb573ddd16c4688",
      "tags": [
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/NixOS/nix/commit/a3163b9eabb952b4aa96e376dea95ebcca97b31a",
      "tags": [
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/NixOS/nix/pull/10178",
      "tags": [
        "Issue Tracking",
        "Patch"
      ],
      "source": "security-advisories@github.com"
    },
    {
      "url": "https://github.com/NixOS/nix/security/advisories/GHSA-g3g9-5vj6-r3gj",
      "tags": [
        "Mitigation",
        "Patch",
        "Vendor Advisory"
      ],
      "source": "security-advisories@github.com"
    }
  ],
  "vulnStatus": "Analyzed",
  "weaknesses": [
    {
      "type": "Secondary",
      "source": "security-advisories@github.com",
      "description": [
        {
          "lang": "en",
          "value": "CWE-61"
        }
      ]
    }
  ],
  "descriptions": [
    {
      "lang": "en",
      "value": "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."
    },
    {
      "lang": "es",
      "value": "Nix es un gestor de paquetes para Linux y otros sistemas Unix. Un error en la corrección para CVE-2024-27299 permitió sobrescrituras arbitrarias de archivos escribibles por el proceso Nix que orquesta las compilaciones (típicamente el demonio Nix ejecutándose como root en instalaciones multiusuario) al seguir enlaces simbólicos durante el registro de salida de derivaciones de salida fija. Esto afecta a las compilaciones de Linux en entornos aislados; las compilaciones de macOS en entornos aislados no se ven afectadas. La ubicación de la salida temporal utilizada para la copia de salida se encontraba dentro del chroot de compilación. Un enlace simbólico, apuntando a una ubicación arbitraria en el sistema de archivos, podría ser creado por el constructor de la derivación en esa ruta. Durante el registro de salida, el proceso Nix (ejecutándose en el espacio de nombres de montaje del host) seguiría ese enlace simbólico y sobrescribiría el destino con el contenido de salida de la derivación. En instalaciones multiusuario, esto permite a todos los usuarios capaces de enviar compilaciones al demonio Nix (usuarios permitidos - por defecto todos los usuarios) obtener privilegios de root modificando archivos sensibles. Esta vulnerabilidad está corregida en 2.34.5, 2.33.4, 2.32.7, 2.31.4, 2.30.4, 2.29.3 y 2.28.6."
    }
  ],
  "lastModified": "2026-07-24T21:10:00.143",
  "configurations": [
    {
      "nodes": [
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "88A1E0DB-FA70-449D-B872-6C8051A7A8A2",
              "versionEndIncluding": "2.18.9",
              "versionStartIncluding": "2.18.2"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "F6D346F6-DF4F-4DFA-A5C8-16D620B5573C",
              "versionEndIncluding": "2.19.7",
              "versionStartIncluding": "2.19.4"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "57A0A4D2-47CF-4E82-85D0-504EF978279F",
              "versionEndIncluding": "2.20.9",
              "versionStartIncluding": "2.20.5"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "169A0D33-C7A8-4D02-A560-3F6ED2DF29D9",
              "versionEndExcluding": "2.28.6",
              "versionStartIncluding": "2.21.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "48408418-40B9-4657-836F-37C964B9F5B5",
              "versionEndExcluding": "2.29.3",
              "versionStartIncluding": "2.29.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "C475C811-04D0-48E3-B302-A6980376BEF8",
              "versionEndExcluding": "2.30.4",
              "versionStartIncluding": "2.30.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "25E84672-263F-4C99-8698-EC5BC3FF4AC3",
              "versionEndExcluding": "2.31.4",
              "versionStartIncluding": "2.31.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "C9E39F02-7238-4B3C-8DDD-EED01C4C9664",
              "versionEndExcluding": "2.32.7",
              "versionStartIncluding": "2.32.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "5BD5E589-D0F6-4C4F-8831-E9B29C842B04",
              "versionEndExcluding": "2.33.4",
              "versionStartIncluding": "2.33.0"
            },
            {
              "criteria": "cpe:2.3:a:nixos:nix:*:*:*:*:*:*:*:*",
              "vulnerable": true,
              "matchCriteriaId": "FC7B6CF8-F460-4C0E-9526-E3C3BEE613EA",
              "versionEndExcluding": "2.34.5",
              "versionStartIncluding": "2.34.0"
            }
          ],
          "operator": "OR"
        },
        {
          "negate": false,
          "cpeMatch": [
            {
              "criteria": "cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*",
              "vulnerable": false,
              "matchCriteriaId": "703AF700-7A70-47E2-BC3A-7FD03B3CA9C1"
            }
          ],
          "operator": "OR"
        }
      ],
      "operator": "AND"
    }
  ],
  "sourceIdentifier": "security-advisories@github.com"
}