Weakness · High
CWE-59: Improper Link Resolution Before File Access ('Link Following')
What it is
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
- Severity (our rating)
- High
- Likelihood of exploit
- Medium
- Introduced during
- Implementation
- Exploited in the wild
- 17 known exploited CVEs
What an attacker can do
- Read Files or Directories (Confidentiality, Integrity, Access Control)
- Modify Files or Directories (Confidentiality, Integrity, Access Control)
- Bypass Protection Mechanism (Confidentiality, Integrity, Access Control)
- Execute Unauthorized Code or Commands (Other)
How to prevent it
Architecture and Design
- Follow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.
How to find it
- Automated Static Analysis - Binary or Bytecode. According to SOAR, the following detection techniques may be useful: Cost effective for partial coverage: Bytecode Weakness Analysis - including disassembler + source code weakness analysis
- Manual Static Analysis - Binary or Bytecode. According to SOAR, the following detection techniques may be useful: Cost effective for partial coverage: Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies
- Dynamic Analysis with Automated Results Interpretation. According to SOAR, the following detection techniques may be useful: Cost effective for partial coverage: Web Application Scanner Web Services Scanner Database Scanners
- Dynamic Analysis with Manual Results Interpretation. According to SOAR, the following detection techniques may be useful: Cost effective for partial coverage: Fuzz Tester Framework-based Fuzzer
- Manual Static Analysis - Source Code. According to SOAR, the following detection techniques may be useful: Highly cost effective: Focused Manual Spotcheck - Focused manual analysis of source Manual Source Code Review (not inspections)
- Automated Static Analysis - Source Code. According to SOAR, the following detection techniques may be useful: Cost effective for partial coverage: Source code Weakness Analyzer Context-configured Source Code Weakness Analyzer
- Architecture or Design Review. According to SOAR, the following detection techniques may be useful: Highly cost effective: Formal Methods / Correct-By-Construction Cost effective for partial coverage: Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)
Exploited in the wild: 17 CVEs
Vulnerabilities caused by CWE-59 that attackers have used, from CISA's Known Exploited Vulnerabilities catalog, newest first.
- CVE-2026-81963Microsoft Windows Link Following Vulnerability · added September 8, 2026
- CVE-2026-41091Microsoft Defender Link Following Vulnerability · added May 20, 2026
- CVE-2025-60710 ransomwareMicrosoft Windows Link Following Vulnerability · added April 13, 2026
- CVE-2025-48384Git Link Following Vulnerability · added August 25, 2025
- CVE-2025-21391Microsoft Windows Storage Link Following Vulnerability · added February 11, 2025
- CVE-2023-36874Microsoft Windows Error Reporting Service Privilege Escalation Vulnerability · added July 11, 2023
- CVE-2020-36193PEAR Archive_Tar Improper Link Resolution Vulnerability · added August 25, 2022
- CVE-2022-30333 ransomwareRARLAB UnRAR Directory Traversal Vulnerability · added August 9, 2022
- CVE-2019-1385 ransomwareMicrosoft Windows AppX Deployment Extensions Privilege Escalation Vulnerability · added May 23, 2022
- CVE-2019-1130 ransomwareMicrosoft Windows AppX Deployment Service Privilege Escalation Vulnerability · added May 23, 2022
- CVE-2019-1315 ransomwareMicrosoft Windows Error Reporting Manager Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2019-1253 ransomwareMicrosoft Windows AppX Deployment Server Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2019-1129 ransomwareMicrosoft Windows AppX Deployment Service (AppXSVC) Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2019-1069 ransomwareMicrosoft Task Scheduler Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2019-1064 ransomwareMicrosoft Windows AppX Deployment Service (AppXSVC) Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2019-0841 ransomwareMicrosoft Windows AppX Deployment Service (AppXSVC) Privilege Escalation Vulnerability · added March 15, 2022
- CVE-2020-0787 ransomwareMicrosoft Windows Background Intelligent Transfer Service (BITS) Improper Privilege Management Vulnerability · added January 28, 2022
H2 Security
Found it in your code?
We review where it appears, fix it with your team, and check it was not already used against you.
Talk to our teamT Academy
Stop writing it in the first place
Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.
Start freeSource: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.