CWE-59: Improper Link Resolution Before File Access
1716 CVEs have CWE-59 as their primary weakness. 21 of them are in the CISA KEV catalog. The highest EPSS score among them is 88.644%.
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.
Child of CWE-706: Use of Incorrectly-Resolved Name or Reference
Mitigations
- 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.
Observed examples
- CVE-1999-1386: Some versions of Perl follow symbolic links when running with the -e option, which allows local users to overwrite arbitrary files via a symlink attack.
- CVE-2000-1178: Text editor follows symbolic links when creating a rescue copy during an abnormal exit, which allows local users to overwrite the files of other users.
- CVE-2004-0217: Antivirus update allows local users to create or append to arbitrary files via a symlink attack on a logfile.
- CVE-2003-0517: Symlink attack allows local users to overwrite files.
- CVE-2004-0689: Window manager does not properly handle when certain symbolic links point to stale locations, which could allow local users to create or truncate arbitrary files.
- CVE-2005-1879: Second-order symlink vulnerabilities
- CVE-2005-1880: Second-order symlink vulnerabilities
- CVE-2005-1916: Symlink in Python program
- CVE-2000-0972: Setuid product allows file reading by replacing a file being edited with a symlink to the targeted file, leaking the result in error messages when parsing fails.
- CVE-2005-0824: Signal causes a dump that follows symlinks.
- CVE-2001-1494: Hard link attack, file overwrite; interesting because program checks against soft links
- CVE-2002-0793: Hard link and possibly symbolic link following vulnerabilities in embedded operating system allow local users to overwrite arbitrary files.
- CVE-2003-0578: Server creates hard links and unlinks files as root, which allows local users to gain privileges by deleting and overwriting arbitrary files.
- CVE-1999-0783: Operating system 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.
- CVE-2004-1603: Web hosting manager follows hard links, which allows local users to read or modify arbitrary files.
- CVE-2004-1901: Package listing system allows local users to overwrite arbitrary files via a hard link attack on the lockfiles.
- CVE-2005-1111: Hard link race condition
- CVE-2000-0342: Mail client allows remote attackers to bypass the user warning for executable attachments such as .exe, .com, and .bat by using a .lnk file that refers to the attachment, aka Stealth Attachment.
- CVE-2001-1042: FTP server allows remote attackers to read arbitrary files and directories by uploading a .lnk (link) file that points to the target file.
- CVE-2001-1043: FTP server allows remote attackers to read arbitrary files and directories by uploading a .lnk (link) file that points to the target file.
- CVE-2005-0587: Browser allows remote malicious web sites to overwrite arbitrary files by tricking the user into downloading a .LNK (link) file twice, which overwrites the file that was referenced in the first .LNK file.
- CVE-2001-1386: .LNK. - .LNK with trailing dot
- CVE-2003-1233: Rootkits can bypass file access restrictions to Windows kernel directories using NtCreateSymbolicLinkObject function to create symbolic link
- CVE-2002-0725: Chain: File system allows local attackers to hide file usage activities via a hard link (CWE-65) to the target file, which causes the link to be recorded in the audit trail instead of the target file (CWE-221).
- CVE-2003-0844: Web server plugin allows local users to overwrite arbitrary files via a symlink attack on predictable temporary filenames.
- CVE-2015-3629: A Libcontainer used in Docker Engine allows local users to escape containerization and write to an arbitrary file on the host system via a symlink attack in an image when respawning a container.
- CVE-2021-21272: Zip Slip vulnerability in Go-based Open Container Initiative (OCI) registries product allows writing arbitrary files outside intended directory via symbolic links or hard links in a gzipped tarball.
- CVE-2020-27833: Zip Slip vulnerability in container management product allows writing arbitrary files outside intended directory via a container image (.tar format) with filenames that are symbolic links that point to other files within the same tar file; however, the files being pointed to can also be symbolic links to destinations outside the intended directory, bypassing the initial check.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2024-57728 | 2025-01-15 | HIGH | 7.2 | 64.468% | SimpleHelp remote support software v5.5.7 and before allows admin users to upload arbitrary files anywhere on the file system by uploading a crafted zip file… |
| CVE-2023-36874 | 2023-07-11 | HIGH | 7.8 | 44.435% | Windows Error Reporting Service Elevation of Privilege Vulnerability |
| CVE-2020-0787 | 2020-03-12 | HIGH | 7.8 | 42.524% | An elevation of privilege vulnerability exists when the Windows Background Intelligent Transfer Service (BITS) improperly handles symbolic links, aka 'Windows… |
| CVE-2019-0841 | 2019-04-09 | HIGH | 7.8 | 41.400% | An elevation of privilege vulnerability exists when Windows AppX Deployment Service (AppXSVC) improperly handles hard links, aka 'Windows Elevation of… |
| CVE-2021-41379 | 2021-11-10 | MEDIUM | 5.5 | 19.452% | Windows Installer Elevation of Privilege Vulnerability |
| CVE-2019-1253 | 2019-09-11 | HIGH | 7.8 | 11.616% | An elevation of privilege vulnerability exists when the Windows AppX Deployment Server improperly handles junctions.To exploit this vulnerability, an attacker… |
| CVE-2015-1130 | 2015-04-10 | HIGH | 7.8 | 9.887% | The XPC implementation in Admin Framework in Apple OS X before 10.10.3 allows local users to bypass authentication and obtain admin privileges via unspecified… |
| CVE-2026-41091 | 2026-05-20 | HIGH | 7.8 | 8.202% | Improper link resolution before file access ('link following') in Microsoft Defender allows an authorized attacker to elevate privileges locally. |
| CVE-2020-0683 | 2020-02-11 | HIGH | 7.8 | 7.667% | An elevation of privilege vulnerability exists in the Windows Installer when MSI packages process symbolic links, aka 'Windows Installer Elevation of Privilege… |
| CVE-2026-81963 | 2026-09-08 | HIGH | 7.8 | 7.115% | Improper link resolution before file access ('link following') in Windows Update Stack allows an authorized attacker to elevate privileges locally. |
| CVE-2019-1064 | 2019-06-12 | HIGH | 7.8 | 6.886% | An elevation of privilege vulnerability exists when Windows AppX Deployment Service (AppXSVC) improperly handles hard links. An attacker who successfully… |
| CVE-2019-1069 | 2019-06-12 | HIGH | 7.8 | 6.167% | An elevation of privilege vulnerability exists in the way the Task Scheduler Service validates certain file operations. An attacker who successfully exploited… |
| CVE-2015-5287 | 2015-12-07 | HIGH | 7.8 | 5.003% | The abrt-hook-ccpp help program in Automatic Bug Reporting Tool (ABRT) before 2.7.1 allows local users with certain permissions to gain privileges via a… |
| CVE-2025-60710 | 2025-11-11 | HIGH | 7.8 | 4.614% | Improper link resolution before file access ('link following') in Host Process for Windows Tasks allows an authorized attacker to elevate privileges locally. |
| CVE-2019-1385 | 2019-11-12 | HIGH | 7.8 | 3.604% | An elevation of privilege vulnerability exists when the Windows AppX Deployment Extensions improperly performs privilege management, resulting in access to… |
| CVE-2019-1315 | 2019-10-10 | HIGH | 7.8 | 3.478% | An elevation of privilege vulnerability exists when Windows Error Reporting manager improperly handles hard links, aka 'Windows Error Reporting Manager… |
| CVE-2022-21919 | 2022-01-11 | HIGH | 7.0 | 2.567% | Windows User Profile Service Elevation of Privilege Vulnerability |
| CVE-2020-0638 | 2020-01-14 | HIGH | 7.8 | 2.539% | An elevation of privilege vulnerability exists in the way the Update Notification Manager handles files.To exploit this vulnerability, an attacker would first… |
| CVE-2025-21391 | 2025-02-11 | HIGH | 7.1 | 2.284% | Windows Storage Elevation of Privilege Vulnerability |
| CVE-2019-1129 | 2019-07-15 | HIGH | 7.8 | 1.782% | An elevation of privilege vulnerability exists when Windows AppX Deployment Service (AppXSVC) improperly handles hard links, aka 'Windows Elevation of… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-59'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-59'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).