Skip to content
OpenAdvisories

Weakness (CWE)

CWE-59: Improper Link Resolution Before File Access

Base Draft

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.

How to prevent it (1 mitigation)
  1. 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.

Source: MITRE CWE-59

1,128 results · Feed

  • High 7.8

    Windows Portable Device Enumerator Service Elevation of Privilege Vulnerability

    Improper authorization in Windows Portable Device Enumerator Service allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Windows Host Guardian Service Elevation of Privilege Vulnerability

    Improper access control in Windows Host Guardian Service allows an authorized attacker to elevate privileges locally.

  • Medium 5.5

    Windows Update Orchestrator Service Information Disclosure Vulnerability

    Improper link resolution before file access ('link following') in Windows Update Orchestrator Service allows an authorized attacker to disclose information locally.

  • High 7.8

    Windows User Profile Service Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows User Profile Service allows an authorized attacker to elevate privileges locally.

  • Medium 5.5

    Windows Update Orchestrator Service Information Disclosure Vulnerability

    Improper link resolution before file access ('link following') in Windows Update Orchestrator Service allows an authorized attacker to disclose information locally.

  • Medium 5.5

    Windows Backup Engine Information Disclosure Vulnerability

    Improper link resolution before file access ('link following') in Windows Backup Engine allows an authorized attacker to disclose information locally.

  • High 7.3

    .NET Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in .NET allows an authorized attacker to elevate privileges locally.

  • Medium 6.7

    .NET Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in .NET allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Windows AppX Deployment Service Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows AppX Deployment Service allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Windows Hyper-V Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows Hyper-V allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Windows Registry Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows Registry allows an authorized attacker to elevate privileges locally.

  • High 7.0

    Windows Update Orchestrator Service Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows Update Orchestrator Service allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Microsoft Windows Search Component Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Microsoft Windows Search Component allows an authorized attacker to elevate privileges locally.

  • High 7.8

    Windows Update Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows Update allows an authorized attacker to elevate privileges locally.

  • Medium 4.7

    Windows AppX Deployment Service Information Disclosure Vulnerability

    Improper link resolution before file access ('link following') in Windows AppX Deployment Service allows an authorized attacker to disclose information locally.

  • High 8.5

    Local Privilege Escalation

    Improper link resolution before file access ('link following') vulnerability in Citrix UniconOS. This issue affects UniconOS: before 2607 CR and before 2603 LTSR CU2.

  • Medium 4.7

    obsidian-tc symlink path mismatch bypasses read ACL restrictions

    obsidian-tc is a governed, agent-ready Model Context Protocol server for Obsidian vaults. Prior to 1.3.1, read access-control list (ACL) checks use a lexical vault-relative path while containment checks use the resolved path. An in-vault symlink under an allo…

  • High 7.1

    Serena before 2.0.0 Symlink Following in File Tools Allows Access Outside Project Root

    Serena before 2.0.0 contains an improper link resolution vulnerability that allows attackers to access files outside the project root by committing symlinks inside a repository. Project.is_path_in_project() normalizes paths lexically without resolving symlink…

  • Medium 5.5

    Hugo from v0.162.0 before v0.167.0 Symlink File Disclosure via Nested Mount Ancestor

    Hugo from v0.162.0 before v0.167.0 contains an improper link resolution vulnerability that lets malicious themes or modules expose files outside their root via nested-mount ancestor directories. Attackers controlling a theme can place a symlink or NTFS juncti…

  • Medium 6.1

    Vercel deepsec before 1.1.17 Arbitrary File Write via Symlink in Sandbox Tarball Extraction

    Vercel deepsec from 0.1.0 before 1.1.17 contains a link following vulnerability in extractTarballLocally that allows sandboxed code to write files outside the sandbox by planting links in result tarballs. Attackers controlling sandbox code, such as a prompt-i…

  • Low 2.5

    ImageMagick before 7.1.2-32 TOCTOU Symlink Race Path Policy Bypass via magick script

    ImageMagick before 7.1.2-32 contains a time-of-check time-of-use symlink race vulnerability that allows attackers to bypass the path security policy when executing a magick script. Attackers can swap a checked path with a symlink during script execution to re…

  • Low 3.6

    ImageMagick before 7.1.2-33 Policy Bypass via Symlink in IsRightsAuthorizedByName

    ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 does not properly account for symbolic links in the IsRightsAuthorizedByName security policy check, allowing configured policy restrictions to be bypassed. Local attackers who can create a symlink can point…

  • Medium 4.2

    thClaws through 0.141.0 Symlink Following File Write via POST /v1/inputs

    thClaws through 0.141.0 contains a link-following vulnerability in the post_inputs handler of the v1 API POST /v1/inputs endpoint that allows writes outside the workspace by following symlinks. Attackers who plant a symlink under the allowed inputs/ prefix ca…

  • Medium 6.8

    mistral.rs 0.9.0 through 0.9.4 Sandbox Escape via Symlink Following in mistralrs-code-exec

    mistral.rs 0.9.0 through 0.9.4 contains a link following vulnerability in mistralrs-code-exec that allows sandboxed shell code to read and overwrite files outside the sandbox via symlinks. Attackers or prompt-injected agents can name symlinks as outputs or re…

  • Medium 4.4

    MoAI-ADK through 3.1.2 Symlink Following via moai init Template Deployer

    MoAI-ADK through 3.1.2 contains an improper link resolution vulnerability in the moai init template deployer that allows malicious repositories to overwrite files outside the project via a symlinked .moai-tmp staging path. Attackers can commit a symlink such …

  • Low 2.5

    answer-me-with-html through 0.5.0 Symlink Following in Code Block src Embedding

    answer-me-with-html through 0.5.0 contains a link following vulnerability in the am CLI code block src= embedding, where localPath() checks only path text without resolving symlinks. Attackers can ship a repository with a symlink pointing outside the checkout…

  • Medium 4.7

    open-multi-agent 1.5.0 through 1.21.2 Sandbox Escape via file_write Dangling Symlink

    open-multi-agent (@open-multi-agent/core) 1.5.0 through 1.21.2 contains a link following vulnerability in the file_write tool sandbox that allows attackers to create files outside the workspace root by using dangling symlinks. Attackers can plant a dangling s…

  • Medium 4.7

    Phi 0.1.1 through 0.28.4 Symlink Workspace Write Restriction Bypass

    phi 0.1.1 through 0.28.4 contains an improper link resolution vulnerability that allows malicious repositories to bypass workspace_only_writes by exploiting lexical-only path checks in the permission gate. Attackers can commit symlinks pointing outside the wo…

  • Medium 6.3

    Busybox: busybox: tar extraction-root escape via deferred symlink/hardlink creation bypasses cve-2026-26158 fix

    A flaw was found in busybox. The tar applet's deferred link-creation handling for symlink and hardlink entries with unsafe-looking targets does not validate that the resolved destination remains inside the extraction directory once the deferred link is create…

  • High 8.1

    Nginx UI: Backup restore follows crafted symlinks into the live Nginx configuration path before restore flags are applied

    Nginx UI is a web user interface for the Nginx web server. From 2.0.0 until 2.5.0, internal/backup/restore.go extracts inner archives before applying the restore_nginx and restore_nginx_ui flags and permits symlinks targeting the live Nginx configuration path…

  • High 8.8

    Ansible-core: ansible-core: ansible-galaxy collection install symlink path escape allows arbitrary file write / code execution

    A flaw was found in ansible-core. When installing a collection with `ansible-galaxy collection install`, the archive extractor validates member paths using lexical path normalisation (os.path.abspath) instead of resolving symbolic links (os.path.realpath), an…

  • High 7.3

    Banks: Symlink traversal and arbitrary file disclosure/overwrite in DirectoryPromptRegistry

    Banks generates meaningful LLM prompts using a simple template language. Prior to 2.5.1, Banks DirectoryPromptRegistry does not reject symbolic links for index.json or discovered and existing .jinja prompt files. In an application where untrusted users can in…

  • High 7.8

    Intego Antivirus through 3.0.0.1 Local Privilege Escalation via Optimization Module Junction

    Intego Antivirus for Windows through 3.0.0.1 contains a link following vulnerability in its optimization module that allows local unprivileged users to delete arbitrary folders as SYSTEM. Attackers can replace a scanned duplicate file's directory with a junct…

  • Medium 5.5

    Improper link resolution in asset bundling output handling in aws-cdk-lib

    Improper link resolution before file access in the asset bundling output handling in AWS aws-cdk-lib before 2.267.0 might allow a context-dependent actor to cause files from the build host to be published as the deployed asset. To remediate this issue, users …

  • Medium 6.7

    Improper Link Resolution Before File Access ('Link Following') in hMailServer

    Improper link resolution and external control of file paths in the administrative command-line operations of hMailServer.exe in Progressive Robot hMailServer 6.3.4 and 6.3.5 allow a local attacker who already runs code as the low-privilege service account to …

  • Medium 5.3

    Backstage: Potential file exposure through local TechDocs publisher

    Backstage is an open framework for building developer portals. Prior to 1.15.4, the @backstage/plugin-techdocs-node package is affected by potential file exposure through local techdocs publisher. When using the local TechDocs publisher (techdocs.publisher.ty…

  • Medium 5.3

    Backstage: TechDocs arbitrary file read via mkdocs snippets

    Backstage is an open framework for building developer portals. Prior to 1.15.4, the @backstage/plugin-techdocs-node package is affected by techdocs arbitrary file read via mkdocs snippets. Unsafe path resolution in TechDocs source tree handling allows an auth…

  • High 8.5

    Backstage: Improper task state validation in Scaffolder backend

    Backstage is an open framework for building developer portals. Prior to 3.3.1, 3.4.1, 4.0.3 and 4.1.0, the @backstage/plugin-scaffolder-backend package is affected by improper task state validation in scaffolder backend. An authenticated user with permission …

  • High 8.5

    Backstage: Improper filesystem validation in Bitbucket pull-request scaffolder actions

    Backstage is an open framework for building developer portals. Prior to 0.3.10 in @backstage/plugin-scaffolder-backend-module-bitbucket-cloud and 0.2.25 in @backstage/plugin-scaffolder-backend-module-bitbucket-server, the Bitbucket pull-request Scaffolder act…

  • Medium 5.5

    Cri-o: cri-o: bind_mount_prefix intermediate-symlink prefix bypass

    A flaw was found in CRI-O's `bind_mount_prefix` handling. When configured with a non-empty `bind_mount_prefix`, a malicious container or local attacker could use a Container Runtime Interface (CRI) hostPath containing an intermediate absolute symlink. This co…