CWE-59: Improper Link Resolution Before File Access (Link Following), page 40
Filter
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.
What the weakness is: CWE-59 at MITRE. OWASP Top 10: A01:2025 Broken Access Control. All weaknesses
Related attack patterns (CAPEC): 4
- CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
- CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
- CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
- CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-59, as MITRE names them. Credits.
Ask an AI about CWE-59
Show the prompt
Explain CWE-59: Improper Link Resolution Before File Access and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/59.html and https://cve.bz/cve/cwe/59?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 5.5CVE-1999-1386perlEPSS 0.5%
Perl 5.004_04 and earlier follows symbolic links when running with the -e option, which allows local users to overwrite arbitrary files via a symlink attack on the /tmp/perl-eaXXXXX file.
- –CVE-1999-0981microsoft internet explorerExploitEPSS 13%
Internet Explorer 5.01 and earlier allows a remote attacker to create a reference to a client window and use a server-side redirect to access local files via that window, aka "Server-side Page Reference Redirect."
- –CVE-1999-0794microsoft excelEPSS 1.5%
Microsoft Excel does not warn a user when a macro is present in a Symbolic Link (SYLK) format file.
- 5.5CVE-1999-0783freebsdEPSS 0.8%
FreeBSD allows local users to conduct a denial of service by creating a hard link from a device special file to a file on an NFS file system.