CWE-59: Improper Link Resolution Before File Access
Also known as: insecure temporary file, Zip Slip, Link Following
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.
Last updated
Overview
CWE-59 (Improper Link Resolution Before File Access) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
Soft links are a UNIX term that is synonymous with simple shortcuts on Windows-based platforms.
Real-world CVEs
1,743 recorded CVEs are caused by CWE-59 (Improper Link Resolution Before File Access), including 22 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 482 new CWE-59 CVEs have been recorded so far in 2026 (124 in 2025).