1. Archivio CVE
  2. 2026
  3. CVE-2026-56857

CVE-2026-56857

9.8 Gravità critica CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 9.8 – Critica

Descrizione

On Windows, when the target of Root.Mkdir or Root.MkdirAll is a junction pointing to an empty location, the operation can create a directory at the junction target even when that target is located outside the root. This only applies to operations where the last path component is a junction (path/to/junction, but not path/junction/target).

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
go standard library internal/syscall/windows < 1.26.9 –
go standard library internal/syscall/windows >= 1.27.0-0 < 1.27.2 –
go standard library os < 1.26.9 –
go standard library os >= 1.27.0-0 < 1.27.2 –

Tipo di vulnerabilità

CWE-1386 Insecure Operation on Windows Junction / Mount Point

The product opens a file or directory, but it does not properly prevent the name from being associated with a junction or mount point to a destination that is outside of the intended control sphere.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere file o cartelle
Integrità Modificare file o cartelle
Disponibilità Modificare file o cartelle

Come si previene

Architettura e progettazione · Separazione dei privilegi When designing software that will have different rights than the executer, the software should check that files that it is interacting with are not improper hard links or mount points. One way to do this in Windows is to use the functionality embedded in the following command: dir /al /s /b or, in PowerShell, use LinkType as a filter. In addition, some software uses authentication via signing to ensure that the file is the correct one to use. Make checks atomic with the file action, otherwise a TOCTOU weakness (CWE-367) can be introduced.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 10 CVE di tipo CWE-1386, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org