BaseIncomplete

CWE-1386Insecure Operation on Windows Junction / Mount Point

Category: other

Description

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.

Common consequences· 3

  • Confidentiality — Read Files or Directories
    Read arbitrary files by replacing a user-controlled folder with a mount point and additional hard links.
  • Integrity — Modify Files or Directories
    Modify an arbitrary file by replacing the rollback files in installer directories, as they can have the installer execute those rollbacks.
  • Availability — Modify Files or Directories
    Even if there is no control of contents, an arbitrary file delete or overwrite (when running as SYSTEM or admin) can be used for a permanent system denial-of-service, e.g. by deleting a startup configuration file that prevents the service from starting.

Potential mitigations· 1

  • [Architecture and Design]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.

References

  1. https://cwe.mitre.org/data/definitions/1386.html

(incoming)4

TypeTargetConfidenceTier
VulnerabilityCVE-2025-58074cve-2025-580740%live
KEVEntryMicrosoft Windows Installer Privilege Escalation Vulnerabilitykev-cve-2021-413790%live
KEVEntryMicrosoft Windows User Profile Service Privilege Escalation Vulnerabilitykev-cve-2022-219190%live
KEVEntryMicrosoft Windows Print Spooler Privilege Escalation Vulnerabilitykev-cve-2022-219990%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Relative Path Traversal
CWE
Path Traversal: '..\filedir'
CWE
Path Traversal: '/dir/../filename'
CWE
Path Traversal: '....//'
CWE
Path Traversal: '\dir\..\filename'
CWE
Path Traversal: '\..\filename'
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.