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 DirectoriesRead arbitrary files by replacing a user-controlled folder with a mount point and additional hard links.
- Integrity — Modify Files or DirectoriesModify an arbitrary file by replacing the rollback files in installer directories, as they can have the installer execute those rollbacks.
- Availability — Modify Files or DirectoriesEven 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
(incoming)4
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-58074cve-2025-58074 | 0% | live |
| KEVEntry | Microsoft Windows Installer Privilege Escalation Vulnerabilitykev-cve-2021-41379 | 0% | live |
| KEVEntry | Microsoft Windows User Profile Service Privilege Escalation Vulnerabilitykev-cve-2022-21919 | 0% | live |
| KEVEntry | Microsoft Windows Print Spooler Privilege Escalation Vulnerabilitykev-cve-2022-21999 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.