CWEweakness
CWE-1386 Insecure Operation on Windows Junction / Mount Point
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
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.
Extended description
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.
Common consequences
• 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
• [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.
Observed examples
• CVE-2021-26426: Privileged service allows attackers to delete unauthorized files using a directory junction, leading to arbitrary code execution as SYSTEM.
• CVE-2020-0863: By creating a mount point and hard links, an attacker can abuse a service to allow users arbitrary file read permissions.
• CVE-2019-1161: Chain: race condition (CWE-362) in anti-malware product allows deletion of files by creating a junction (CWE-1386) and using hard links during the time window in which a temporary file is created and deleted.
• CVE-2014-0568: Escape from sandbox for document reader by using a mountpoint [REF-1264]
Related
Observed example · CVE (4)
- CVE-2021-26426 Windows User Account Profile Picture Elevation of Privilege Vulnerability vulnerability
- CVE-2020-0863 An information vulnerability exists when Windows Connected User Experiences and Telemetry Service improperly discloses file information,… vulnerability
- CVE-2019-1161 An elevation of privilege vulnerability exists when the MpSigStub.exe for Defender allows file deletion in arbitrary locations. vulnerability
- CVE-2014-0568 The NtSetInformationFile system call hook feature in Adobe Reader and Acrobat 10.x before 10.1.12 and 11.x before 11.0.09 on Windows allows… vulnerability
Child of · CWE (1)
- CWE-59 Improper Link Resolution Before File Access weakness
Referenced by CVE · weakness (18)
- CVE-2025-64394 A vulnerability allowing a low-privileged local user to write arbitrary files with SYSTEM privileges during the installation of Veeam… vulnerability
- CVE-2026-56857 On Windows, when the target of Root.Mkdir or Root.MkdirAll is a junction pointing to an empty location, the operation can create a… vulnerability
- CVE-2025-64391 This vulnerability in Veeam Agent for Microsoft Windows allows a low-privileged local user to make the agent write files to arbitrary… vulnerability
- CVE-2026-41116 Dell Inventory Collector Client, versions prior to 13.8.0, contain an Improper Link Resolution Before File Access ('Link Following')… vulnerability
- CVE-2025-58074 A privilege escalation vulnerability exists during the installation of Norton Secure VPN via the Microsoft Store. vulnerability
- CVE-2024-36340 A junction point vulnerability within AMD uProf can allow a local low-privileged attacker to create junction points, potentially resulting… vulnerability
- CVE-2024-7400 The vulnerability potentially allowed an attacker to misuse ESET’s file operations during the removal of a detected file on the Windows… vulnerability
- CVE-2023-32454 DUP framework version 4.9.4.36 and prior contains insecure operation on Windows junction/Mount point vulnerability. vulnerability
- CVE-2023-32474 Dell Display Manager application, version 2.1.1.17 and prior, contain an insecure operation on windows junction/mount point. vulnerability
- CVE-2023-5834 HashiCorp Vagrant's Windows installer targeted a custom location with a non-protected path that could be junctioned, introducing potential… vulnerability
- CVE-2023-40623 SAP BusinessObjects Suite Installer - version 420, 430, allows an attacker within the network to create a directory under temporary… vulnerability
- CVE-2023-32470 Dell Digital Delivery versions prior to 5.0.82.0 contain an Insecure Operation on Windows Junction / Mount Point vulnerability. vulnerability
- CVE-2023-28065 Dell Command | Update, Dell Update, and Alienware Update versions 4.8.0 and prior contain an Insecure Operation on Windows Junction / Mount… vulnerability
- CVE-2023-28071 Dell Command | Update, Dell Update, and Alienware Update versions 4.9.0, A01 and prior contain an Insecure Operation on Windows Junction /… vulnerability
- CVE-2023-23697 Dell Command | Intel vPro Out of Band, versions before 4.4.0, contain an arbitrary folder delete vulnerability during uninstallation. vulnerability
- CVE-2023-24572 Dell Command | Integration Suite for System Center, versions before 6.4.0 contain an arbitrary folder delete vulnerability during… vulnerability
- CVE-2023-23698 Dell Command | Update, Dell Update, and Alienware Update versions before 4.6.0 and 4.7.1 contain Insecure Operation on Windows Junction in… vulnerability
- CVE-2022-42291 NVIDIA GeForce Experience contains a vulnerability in the installer, where a user installing the NVIDIA GeForce Experience software may… vulnerability