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

406 results · Clear filters · Feed

  • Medium 6.3

    nanocoai NanoClaw Attachment agent-route.ts forwardAttachedFiles link following

    A vulnerability was found in nanocoai NanoClaw up to 2.1.17. This issue affects the function forwardAttachedFiles of the file src/modules/agent-to-agent/agent-route.ts of the component Attachment Handler. The manipulation results in link following. The attack…

  • Medium 6.8

    File Browser through 2.63.23 Path Traversal via Symlink Alias

    File Browser through 2.63.23 applies path rules to the requested lexical path but resolves symbolic links without reapplying rules to the target, allowing authenticated users to bypass deny rules. Attackers can read and overwrite rule-denied files by accessin…

  • Medium 5.7

    tarfile hardlink fallback ignores custom extraction filter rejection via None

    When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link. For …

  • Medium 6.3

    Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get

    Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site auth…

  • Medium 5.6

    Crun: crun: /dev/null symlink follow during stdio reopen allows host bind-mount write and chown

    A flaw was found in crun. After pivot_root, reopening /dev/null for stdio can follow a symlink and attach a host file to container stdio, then change that file's ownership. Affected versions are crun 1.29.1 and earlier. Default configurations that mount a fre…

  • Medium 5.6

    Crun: crun: /dev/console symlink follow allows root-owned file creation outside the rootfs

    A flaw was found in crun. When the container configuration does not give /dev a dedicated mount, terminal setup can redirect /dev/console onto an attacker-controlled path, including via the read-only-rootfs bind-mount fallback. Affected versions are crun 1.29…

  • Medium 6.0

    Improper Link Resolution in Okta Verify for Windows Uninstaller Data Removal

    The Okta Verify for Windows uninstaller does not verify whether the user data directory is a filesystem junction before deleting its contents with elevated privileges. The delete operation follows the junction target, resulting in recursive deletion of uninte…

  • Medium 4.7

    Windows NTFS Tampering Vulnerability

    Improper link resolution before file access ('link following') in Windows NTFS allows an authorized attacker to perform tampering locally.

  • Medium 4.7

    Windows Container Manager Service Security Feature Bypass Vulnerability

    Improper link resolution before file access ('link following') in Windows Container Manager Service allows an authorized attacker to bypass a security feature locally.

  • Medium 5.5

    Windows Universal Plug and Play (UPnP) Device Host Information Disclosure Vulnerability

    Improper link resolution before file access ('link following') in Windows Universal Plug and Play (UPnP) Device Host allows an authorized attacker to disclose information locally.

  • Medium 5.3

    Glib2: toctou symlink race in `g_file_create_replace_destination` fallback path

    A flaw was found in GLib2. When g_file_replace() is used with G_FILE_CREATE_REPLACE_DESTINATION and creating the .goutputstream-XXXXXX temporary file fails, the library unlinks the destination and recreates it without exclusive creation or symlink protection.…

  • Medium 6.5

    SiYuan before v3.8.2 Path Traversal via symlink in file API

    SiYuan versions before v3.8.2 contain a path traversal vulnerability in the reader-accessible file-read endpoint that follows symlinks when opening authorized asset paths. Attackers with reader role can request a logical asset under data/assets/ that is a sym…

  • Medium 6.6

    LiME through 1.12.0 Arbitrary File Overwrite via Symlink Following

    LiME through 1.12.0 fails to validate the disk acquisition output path and does not use O_NOFOLLOW when opening the operator-supplied path parameter, allowing unprivileged local users to overwrite arbitrary root-owned files. An attacker who controls the outpu…

  • Medium 5.8

    Backblaze Client for Windows Improper Link Resolution Vulnerability

    A vulnerability in the Backblaze Client allows a local user to make the system not bootable by creating a link from Backblaze's folder to Windows OS system files during a backup. Successful exploitation requires an administrator-level system change that resul…

  • Medium 6.6

    aqua: Archive extraction in aqua follows attacker-planted symlinks, allowing writes outside the install directory

    aqua is a declarative command-line version manager written in Go. Prior to 2.60.1, pkg/unarchive/archives.go in the handler.HandleFile method calls os.Symlink with archives.FileInfo.LinkTarget without verifying that the target remains under the extraction des…

  • Medium 5.3

    gitoxide before 0.33.0 Path Traversal via symlink following

    gix-worktree-state before 0.33.0 (part of gitoxide) allows writing files outside the worktree on Windows. gix_worktree_state::checkout() follows an existing terminal symlink during non-exclusive (incremental) materialization (destination_is_initially_empty: f…

  • Medium 6.8

    Fixed predictable /tmp/ziptransformer work directory enables symlink pre-creation

    A local unprivileged user on the same host can redirect all Zip/UnZip transformer output into a directory of their choosing by pre-creating /tmp/ziptransformer as a symlink before the application starts. Spring Integration 7.1.0 Spring Integration 7.0.0 - 7.0…

  • Medium 5.9

    NLTK before 3.10.3 Path Traversal via Symlink Bypass

    NLTK versions before 3.10.3 contain a path traversal vulnerability in corpus readers that reopen root-derived paths using built-in open() instead of nltk.pathsec.open(), allowing symlinks to escape trusted roots. Attackers who stage symlinked corpus files und…

  • Medium 6.5

    adm-zip 0.5.9 through 0.6.0 Arbitrary File Overwrite via Symlink Following on Extraction

    adm-zip 0.5.9 through 0.6.0 follows symbolic links at the extraction destination. Utils.sanitize in util/utils.js enforces containment by comparing only the string form of an archive entry name against the resolved extraction root, and Utils.writeFileTo opens…

  • Medium 6.2

    NLTK before 3.9.4 Symlink Escape via CorpusReader

    NLTK versions before 3.9.4 contain a symlink escape vulnerability in CorpusReader.open() that allows local attackers to read arbitrary files outside the corpus root. The vulnerability exists because path validation is lexical and does not account for symlink …

  • Medium 5.5

    nltk IPIPANCorpusReader Symlink Arbitrary File Read

    nltk versions before 3.10.2 contain a symlink-based arbitrary file read vulnerability in IPIPANCorpusReader methods that bypass nltk.pathsec validation entirely. Attackers can place a symlink in the corpus root directory and read arbitrary files accessible to…

  • Medium 6.5
    CVE-2026-55168 Public exploit

    Runtipi: Authenticated arbitrary file write via backup restore symlink planting

    Runtipi is a personal homeserver orchestrator. In 4.10.0 and earlier, Runtipi accepts symbolic links from an attacker-controlled backup archive and copies them into live application paths during the backup restore flow. An authenticated attacker can plant use…

  • Medium 5.9

    Infracost: Arbitrary file read via config-template readFile symlink traversal

    Infracost provides cloud cost intelligence for engineers, AI coding agents, and CI/CD. Prior to 0.10.45, the readFile, pathExists, isDir, and matchPaths template functions in internal/config/template/parser.go use a lexical filepath.Rel check and a leaf-only …

  • Medium 6.3

    Vulnerabilities in IBM AIX and PowerVM VIOS

    IBM AIX 7.2, and 7.3 and IBM PowerVM VIOS 4.1 could allow a local attacker to cause a denial of service due to improper validation of symbolic links.

  • Medium 6.8

    Kenwood DNR1007XR Firmware Update Link Following Code Execution Vulnerability

    Kenwood DNR1007XR Firmware Update Link Following Code Execution Vulnerability. This vulnerability allows physically present attackers to execute arbitrary code on affected installations of Kenwood DNR1007XR devices. Authentication is not required to exploit t…

  • Medium 4.2

    Etherpad: Import/export use Math.random() for temp file paths; predictable paths on shared /tmp enable symlink-based file overwrite

    Etherpad is a real-time collaborative editor. Prior to 3.1.0, src/node/handler/ImportHandler.ts and src/node/handler/ExportHandler.ts derive temporary filenames from Math.random() and place them in os.tmpdir(). On a host with a shared world-writable temporary…

  • Medium 6.6

    Dell Command Update (DCU), versions prior to 5.7.1, contain an Improper Link Resolution Before File Access ('Link Follo…

  • Medium 6.4

    Confidential Containers Guest Components image-rs: zip-slip-class arbitrary file write via absolute entry path in hardlink fallback

    Confidential Containers Guest Components provides guest tools and components for confidential container workloads. From 0.16.0 until 0.20.0, a crafted OCI image layer can make image_rs::stream::unpack::unpack() create a hardlink outside its destination direct…

  • Medium 6.1

    OpenTofu before 1.11.7 Symlink Following Path Traversal

    OpenTofu before 1.11.7 fails to validate existing symlinks in the provider cache directory during initialization. Attackers can place a malicious symlink in a trusted working directory to cause tofu init to write provider package contents to arbitrary filesys…

  • Medium 5.9

    rsync < 3.5.0 Symlink Race Condition Directory Traversal

    rsync before 3.5.0 contains a symlink race condition vulnerability in the sender's directory scanning logic that allows attackers to cause the sender to enumerate and transfer files outside the module root's intended subtree. Attackers who can create or manip…

  • Medium 4.7

    rsync < 3.5.0 Symlink Race Condition via --remove-source-files

    rsync before 3.5.0 contains a symlink race condition vulnerability in the --remove-source-files feature that allows attackers with symlink creation access to cause arbitrary file deletion. Attackers can atomically substitute a symlink for a source file betwee…

  • Medium 6.3

    rsync < 3.5.0 Symlink Race Condition via ACL/xattr Application

    rsync before 3.5.0 contains a symlink race condition vulnerability that allows local attackers to cause rsync to apply arbitrary ACLs or extended attributes to unintended files by substituting a symlink at a predictable destination path between the file write…

  • Medium 4.7

    rsync < 3.5.0 Symlink Race Condition Information Disclosure

    rsync before 3.5.0 contains a symlink race condition vulnerability in the sender's source tree traversal that allows an attacker who can manipulate a parent directory of the source tree to redirect file reads to unintended paths. Attackers can atomically repl…

  • Medium 6.3

    rsync < 3.5.0 TOCTOU Race Condition via Destination Directory Handling

    rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the non-daemon receiver's destination directory handling that allows an attacker who can manipulate destination path parent components to redirect file writes …

  • Medium 6.7

    Microsoft OneDrive for MacOS Elevation of Privilege Vulnerability

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

  • Medium 5.5

    Windows Container Isolation FS Filter Driver (unionfs.sys) Tampering Vulnerability

    Improper link resolution before file access ('link following') in Windows Container Isolation FS Filter Driver (unionfs.sys) allows an authorized attacker to perform tampering locally.

  • Medium 5.5

    Windows Management Services Denial of Service Vulnerability

    Improper link resolution before file access ('link following') in Windows Management Services allows an authorized attacker to deny service locally.

  • Medium 5.1

    Arbitrary File Read via Improper Symlink Handling in USB HTTPS Access Path in multiple TP-Link Aginet Devices

    The affected TP-Link Aginet devices do not properly validate symbolic links created on external USB storage devices. By placing a crafted symbolic link on supported storage media, an attacker may cause the system to resolve the link. Successful exploitation m…

  • Medium 6.5

    CyberPanel 2.4.3 Arbitrary File Read via File Manager ZIP Upload

    CyberPanel 2.4.3, fixed in commit eca0c3c, contains an arbitrary file read vulnerability in the file manager component that allows authenticated attackers to read sensitive system files by uploading a crafted ZIP archive containing symbolic links. Attackers c…

  • Medium 6.5

    tar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()

    tar-rs versions 0.4.11 through 0.4.46 contain a symlink escape vulnerability in the Builder::append_dir_all() function that allows attackers to read files outside the intended source root directory by planting symlinks in an attacker-controlled directory. Whe…