1. CVE archive
  2. Vulnerability types
  3. CWE-1386
CWE-1386 · #405 most frequent type in the archive

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.

Part of: CWE-59 · Improper Link Resolution Before File Access

10CVEs of this type in the archive
1critical (CVSS ≥ 9)
4high severity (7–8.9)
Oct 27, 2026latest published

What it is

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.

If a file is used by a privileged program, but it can be replaced with a hard link to a sensitive file (e.g., AUTOEXEC.BAT), an attacker could escalate privileges. When the process opens the file, the attacker can assume the privileges of that process, tricking the privileged process to read, modify, or delete the sensitive file, preventing the program from accurately processing data. Note that one can also point to registries and semaphores.

Impact on systems

ScopeImpact
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.

How to prevent it

Architecture and Design · Separation of Privilege 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.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-1386 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20233
20241
20251
20265

All CWE-1386 CVEs

10 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.