Skip to main content

About CWE-59

Attackers may read or overwrite unexpected files and bypass mechanisms that depend on those files. On Windows, uploaded shortcut files can enable remote execution.

MITRE name
Improper Link Resolution Before File Access
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Draft

Also Known As

  • insecure temporary file
  • Zip Slip
  • Link Following

Mitigations

  • Apply least privilege to file access rights.
  • Deny write access to locations where a file could be replaced by a link to a sensitive target.
  • Compartmentalize the system so that protected areas can be trusted.

Detection
MITRE cites bytecode and binary analysis, scanners and fuzzers as cost effective for partial coverage.

CWE-59 in the KEV Catalog

as of 2026-11-14
All KEV statistics→
  • 24 CISA KEV entries name Link Following (CWE-59) in their CVE record, tied for 20th among the 195 weaknesses named in the catalog.
  • CISA added 0 CWE-59 entries to the KEV catalog in 2024, 2 in 2025, and 4 so far in 2026.
  • Microsoft has the most CWE-59 entries in the CISA KEV catalog (19).
  • CISA marks 58% of CWE-59 KEV entries (14 of 24) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 8% of CWE-59 KEV entries with SSVC data (2 of 24) as automatable, compared with 41% across the catalog.

Related Attack Patterns

4 CAPEC patterns
CAPEC-17Using Malicious FilesStandard · Severity Very High · Likelihood High
CAPEC-35Leverage Executable Code in Non-Executable FilesDetailed · Severity Very High · Likelihood High
CAPEC-76Manipulating Web Input to File System CallsDetailed · Severity Very High · Likelihood High
CAPEC-132Symlink AttackDetailed · Severity High · Likelihood Low

CWE-59 Vulnerabilities

25 CVEs
CVECVSS
CVE-2026-81963KEV
Windows Update Stack Elevation of Privilege Vulnerability
7.8
CVE-2015-5287KEV
Red Hat Automatic Bug Reporting Tool Privilege Escalation Vulnerability
7.8
CVE-2026-41091KEV
Microsoft Defender Elevation of Privilege Vulnerability
7.8
CVE-2025-60710KEV
Host Process for Windows Tasks Elevation of Privilege Vulnerability
7.8
CVE-2025-48384KEV
Git allows arbitrary code execution through broken config quoting
8.1
CVE-2025-21391KEV
Windows Storage Elevation of Privilege Vulnerability
7.1
CVE-2023-36874KEV
Windows Error Reporting Service Elevation of Privilege Vulnerability
7.8
CVE-2020-36193KEV
PEAR Archive_Tar Improper Link Resolution Vulnerability
7.5
CVE-2022-30333KEV
RARLAB UnRAR Directory Traversal Vulnerability
9.8
CVE-2019-1385KEV
Microsoft Windows AppX Deployment Extensions Privilege Escalation Vulnerability
7.8
CVE-2020-0638KEV
Microsoft Update Notification Manager Privilege Escalation Vulnerability
7.8
CVE-2019-1130KEV
Microsoft Windows AppX Deployment Service Privilege Escalation Vulnerability
7.8
CVE-2022-21919KEV
Windows User Profile Service Elevation of Privilege Vulnerability
7.0
CVE-2022-21999KEV
Windows Print Spooler Elevation of Privilege Vulnerability
7.8
CVE-2019-0841KEV
Microsoft Windows AppX Deployment Service (AppXSVC) Privilege Escalation Vulnerability
7.8
CVE-2019-1253KEV
Microsoft Windows AppX Deployment Server Privilege Escalation Vulnerability
7.8
CVE-2019-1064KEV
Windows Elevation of Privilege Vulnerability
7.8
CVE-2019-1069KEV
Task Scheduler Elevation of Privilege Vulnerability
7.8
CVE-2019-1315KEV
Microsoft Windows Error Reporting Manager Privilege Escalation Vulnerability
7.8
CVE-2019-1129KEV
Microsoft Windows AppX Deployment Service (AppXSVC) Privilege Escalation Vulnerability
7.8
CVE-2021-41379KEV
Windows Installer Elevation of Privilege Vulnerability
5.5
CVE-2015-1130KEV
Apple OS X Authentication Bypass Vulnerability
7.8
CVE-2020-0787KEV
Microsoft Windows Background Intelligent Transfer Service (BITS) Improper Privilege Management Vulnerability
7.8
CVE-2020-0683KEV
Microsoft Windows Installer Privilege Escalation Vulnerability
7.8
CVE-2026-50656
Microsoft Defender Elevation of Privilege Vulnerability
7.8

Frequently Asked Questions

What is CWE-59?→

CWE-59 is improper link resolution before file access, where a filename resolves through a symbolic link or shortcut to an unintended file.

Is Zip Slip part of CWE-59?→

MITRE lists Zip Slip as an alternate term. It notes Zip Slip is most often associated with relative path traversal (CWE-23) and link following (CWE-59).

How many exploited vulnerabilities are classified as CWE-59?→

This database lists 25 CVE records mapped to CWE-59 by their CVE Numbering Authority. 24 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 14 to known ransomware campaigns. Examples include CVE-2026-81963, CVE-2015-5287, CVE-2026-41091.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.