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,130 results · Feed

  • High 8.1

    rsync < 3.5.0 Arbitrary File Write via --temp-dir/--link-dest

    rsync before 3.5.0 contains an arbitrary file write vulnerability that allows attackers to write files outside the intended destination tree by specifying an absolute path via --temp-dir or --link-dest options. The rename-confinement logic is bypassed when th…

  • High 7.4

    rsync < 3.5.0 Path Confinement Bypass via /./ Boundary Marker in Chroot Mode

    rsync before 3.5.0 contains a path confinement bypass vulnerability that allows remote clients to escape the intended inner-module root confinement by constructing paths that resolve outside the chroot boundary when the module root contains a /./ boundary mar…

  • High 7.1

    rsync < 3.5.0 Path Traversal Write Escape via --relative Mode

    rsync before 3.5.0 contains a path traversal vulnerability that allows a malicious sender to write files outside the intended destination directory tree by crafting relative paths with symlink components in --relative mode. The make_path() function follows sy…

  • High 7.1

    rsync < 3.5.0 Path Traversal via Symlink Module Root

    rsync before 3.5.0 contains a path traversal vulnerability that allows remote clients to access files outside the intended module root when use chroot is disabled and the module root path or a component of it is a symlink. The daemon calls chdir() to the modu…

  • High 8.1

    rsync < 3.5.0 TOCTOU Race Condition Directory Escape via rrsync

    rsync before 3.5.0 contains a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the rrsync restricted shell wrapper that allows authenticated clients to escape enforced directory restrictions by substituting a symlink for a path component …

  • High 7.8

    rsync < 3.5.0 Symlink Following Arbitrary File Overwrite

    rsync before 3.5.0 contains a symlink following vulnerability that allows local attackers to overwrite arbitrary files by placing a symlink at a predictable output path such as --log-file, --write-batch, or daemon-mode log and statistics paths. Attackers can …

  • High 8.2

    filebrowser before 2.63.19 Out-of-Scope File Deletion via Symlink

    filebrowser versions before 2.63.19 contain an out-of-scope file deletion vulnerability in the TUS upload cache eviction mechanism that allows authenticated users with only Create permission to delete arbitrary files outside their scope. Attackers can swap an…

  • Low 1.1

    Prisma Access Agent: Authenticated Limited File Deletion on Linux

    An improper link resolution before file access vulnerability exists in the Palo Alto Networks Prisma® Access Agent on Linux platforms that enables a local low privileged user to delete system files in a limited scope and disable Prisma Access Agent. The Prism…

  • Critical 9.9

    Arbitrary File Read/Write: metadata.yaml symlink in image allows host filesystem access as root

    A link following vulnerability in LXD allows an attacker to achieve arbitrary file read and write operations on the host system. When importing or unpacking an image archive, LXD fails to validate whether the metadata.yaml file is a symbolic link. An attacker…

  • Critical 9.9

    Root RCE via image backup.yaml symlink

    A link following vulnerability in LXD allows an attacker to achieve root command execution on the host system. During the import or unpacking of crafted image or backup archives, LXD fails to properly validate and confine the backup.yaml file when it exists a…

  • 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.

  • 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.

  • High 7.8

    Windows DHCP Server Elevation of Privilege Vulnerability

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

  • High 7.8

    Windows DHCP Server Elevation of Privilege Vulnerability

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

  • High 7.8

    Windows DHCP Server Elevation of Privilege Vulnerability

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

  • High 7.8

    Windows DHCP Server Elevation of Privilege Vulnerability

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

  • High 7.8

    Windows Accessibility Infrastructure (ATBroker.exe) Elevation of Privilege Vulnerability

    Improper link resolution before file access ('link following') in Windows Accessibility Infrastructure (ATBroker.exe) 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.

  • High 7.8

    Windows DHCP Server Elevation of Privilege Vulnerability

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

  • High 7.1

    Mrtg: mrtg daemon symlink-following chown allows local privilege escalation via pid file path manipulation

    A flaw was found in MRTG. When the MRTG daemon is started as a root user and subsequently drops privileges, a local, low-privileged attacker can exploit a symbolic link (symlink) following vulnerability. By influencing or pre-placing a symlink in the process …

  • 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…

  • High 7.8

    Libvirt: swtpm privilege escalation via symlink following

    A flaw was found in libvirt. A local attacker, specifically a process running as the confined `swtpm` user, could exploit a symlink-following vulnerability in the `virFileChownFiles()` function. By planting a symbolic link within the `swtpm` state directory, …

  • 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…

  • Medium 5.5

    systemd-oomd: unprivileged users can terminate arbitrary processes

    Local unprivileged users can terminate arbitrary local processes via a systemd-oomd IPC API due to a missing path traversal validation.

  • Low 2.5

    File::Rotate::Simple versions before 0.4.0 for Perl create the target of dangling symlinks when rotating files

    File::Rotate::Simple versions before 0.4.0 for Perl create the target of dangling symlinks when rotating files. When the file to be rotated is a symbolic link to a missing file, and the touch option is enabled, then the rotate method assumes that the file is …

  • High 7.1

    go-git: Worktree operations may follow symlinks

    go-git is an extensible git implementation library written in pure Go. Prior to 5.19.2 and 6.0.0-alpha.5, worktree operations (including checkout, status, and add) resolve symbolic links inside the working tree without confining resolution to the worktree bou…

  • High 8.7

    Nx: Zip-Slip in the self-hosted remote cache

    Nx is a monorepo solution for TypeScript and polyglot codebases. From version 20.8.0 until 22.7.7 and 23.0.2, the Nx self-hosted HTTP remote cache extracts downloaded cache artifacts without constraining where files are written. A malicious or on-path (MITM) …

  • Medium 6.3

    mf-yang openclaw-cn apply_patch Tool sandbox-paths.ts assertNoSymlinkEscape link following

    A vulnerability was identified in mf-yang openclaw-cn up to 0.2.1. This issue affects the function assertNoSymlinkEscape of the file src/agents/sandbox-paths.ts of the component apply_patch Tool. Such manipulation leads to link following. It is possible to la…

  • Medium 4.3

    Jenkins 2.575 and earlier, LTS 2.568.1 and earlier does not safely handle symbolic links with effectively empty names d…

  • Critical 9.1

    Cisco SD-WAN Software Security Hardening Release - Improper Link Resolution Before File Access

    As part of Cisco's ongoing commitment to proactive security and product quality, the Cisco Catalyst SD-WAN engineering team has conducted a comprehensive internal security review. This review resulted in software hardening releases that address multiple inter…

  • High 7.8

    CCleaner local privilege escalation via link following on uninstall

    Link following vulnerability in the Uninstaller component in CCleaner prior to 7.10.1464 on Windows allows a local, low-privileged attacker to escalate privileges to SYSTEM via a symlink/junction created during application uninstallation, which CCleaner follo…

  • Medium 6.6

    Dell Monitor driver, version 1.0.0.0, contains an Improper Link Resolution Before File Access ('Link Following') vulner…

  • Medium 4.4

    Tar: tar: --one-top-level hardlink targets not confined to top-level directory enabling arbitrary file overwrite

    A flaw was found in GNU tar. When extracting an archive with the --one-top-level option, hardlink targets are not confined to the designated top-level directory and may resolve relative to the extraction working directory. A crafted archive can create hardlin…

  • Medium 4.8

    OnionShare follows symlinks in shared directories, allowing unintended disclosure of local files

    OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. Prior to 2.6.4, OnionShare CLI/Desktop follows symbolic links in cli/onionshare_cli/web/send_base_mode.py through…

  • Medium 5.8

    Linuxfabrik monitoring-plugins: Symlink following in logfile legacy database migration

    Linuxfabrik monitoring-plugins provides Python monitoring plugins for Icinga, Nagios, and related monitoring systems. In version 6.0.0, the logfile check legacy database migration moved a predictable path from /tmp with os.rename() and allowed a local user co…

  • High 7.8

    G DATA Total Security Backup Service Link Following Local Privilege Escalation Vulnerability

    G DATA Total Security Backup Service Link Following Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of G DATA Total Security. An attacker must first obtain the ability to exe…

  • Medium 6.5

    Develar's electron-builder allows arbitrary file overwrite

    A vulnerability in the `zipx.Unzip` extraction routine of Develar's app-builder allows an attacker to overwrite arbitrary files on macOS APFS by exploiting a Unicode Normalization Collision combined with symlink following behavior. APFS treats certain Unicode…

  • Medium 6.5

    skilo add follows symbolic links, allowing arbitrary local file disclosure from a malicious skill source

    ### Impact `skilo add` installs a skill by recursively copying the skill directory into the target skills directory. The copy routine (`copy_dir_all`) classified each entry with `std::fs::DirEntry::file_type()` — which does **not** follow symlinks — and then …