CWE-1386: Insecure Operation on Windows Junction / Mount Point

18 CVEs have CWE-1386 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 0.553%.

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.

Child of CWE-59: Improper Link Resolution Before File Access

Mitigations

Observed examples

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources