cve.bz

CWE-59: Improper Link Resolution Before File Access (Link Following), published in 2023, page 3

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 promptExplain 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

  1. 8.2CVE-2023-25168pterodactyl wingsEPSS 1.0%

    Wings is Pterodactyl's server control plane. This vulnerability can be used to delete files and directories recursively on the host system. This vulnerability can be combined with `GHSA-p8r3-83r8-jwj5` to overwrite files on the host syste…

  2. 8.8CVE-2023-25152pterodactyl wingsEPSS 0.7%

    Wings is Pterodactyl's server control plane. Affected versions are subject to a vulnerability which can be used to create new files and directory structures on the host system that previously did not exist, potentially allowing attackers t…

  3. 5.5CVE-2022-42291nvidia geforce experienceEPSS 0.2%

    NVIDIA GeForce Experience contains a vulnerability in the installer, where a user installing the NVIDIA GeForce Experience software may inadvertently delete data from a linked location, which may lead to data tampering. An attacker does no…

  4. 7.8CVE-2020-36657uptimed project uptimedEPSS 0.4%

    uptimed before 0.4.6-r1 on Gentoo allows local users (with access to the uptimed user account) to gain root privileges by creating a hard link within the /var/spool/uptimed directory, because there is an unsafe chown -R call.

  5. 7.1CVE-2023-20008ciscoEPSS 0.2%

    A vulnerability in the CLI of Cisco TelePresence CE and RoomOS Software could allow an authenticated, local attacker to overwrite arbitrary files on the local system of an affected device. This vulnerability is due to improper access co…

  6. 4.4CVE-2022-45440zyxel ax7501-b0 firmwareEPSS 0.2%

    A vulnerability exists in the FTP server of the Zyxel AX7501-B0 firmware prior to V5.17(ABPC.3)C0, which processes symbolic links on external storage media. A local authenticated attacker with administrator privileges could abuse this vuln…

  7. 6.5CVE-2022-3592EPSS 2.8%

    A symlink following vulnerability was found in Samba, where a user can create a symbolic link that will make 'smbd' escape the configured share path. This flaw allows a remote user with access to the exported part of the file system under …

  8. 7.1CVE-2023-21760microsoftEPSS 0.6%

    Windows Print Spooler Elevation of Privilege Vulnerability

  9. 6.3CVE-2023-21725microsoft windows malicious software removal toolEPSS 0.4%

    Windows Malicious Software Removal Tool Elevation of Privilege Vulnerability

  10. 7.8CVE-2023-21678microsoftEPSS 0.5%

    Windows Print Spooler Elevation of Privilege Vulnerability

  11. 7.0CVE-2023-21542microsoftEPSS 0.3%

    Windows Installer Elevation of Privilege Vulnerability

  12. 4.3CVE-2022-38482mega hopexEPSS 0.6%

    A link-manipulation issue was discovered in Mega HOPEX 15.2.0.6110 before V5CP4.

  13. 8.1CVE-2022-36943ziparchive project ziparchiveEPSS 1.0%

    SSZipArchive versions 2.5.3 and older contain an arbitrary file write vulnerability due to lack of sanitization on paths which are symlinks. SSZipArchive will overwrite files on the filesystem when opening a malicious ZIP containing a syml…