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

  • Medium 5.0

    ReFirm Labs binwalk Archive Extraction extractor.py symlink

    A vulnerability, which was classified as problematic, was found in ReFirm Labs binwalk up to 2.3.2. Affected is an unknown function of the file src/binwalk/modules/extractor.py of the component Archive Extraction Handler. The manipulation leads to symlink fol…

  • High 8.8

    When resolving a symlink such as <code>file:///proc/self/fd/1</code>, an error message may be produced where the symlin…

  • High 7.8

    Freedom of the Press SecureDrop gpg-agent.conf symlink

    A vulnerability was found in Freedom of the Press SecureDrop. It has been rated as critical. Affected by this issue is some unknown functionality of the file gpg-agent.conf. The manipulation leads to symlink following. Local access is required to approach thi…

  • Medium 5.3

    Buildah (as part of Podman) vulnerable to Link Following

    A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.

  • Medium 6.7

    An issue was discovered in open-vm-tools 2009.03.18-154848. Local users can gain privileges via a symlink attack on /tm…

  • High 7.0

    An issue was discovered in open-vm-tools 2009.03.18-154848. Local users can bypass intended access restrictions on moun…

  • High 7.8

    This issue was addressed with improved validation of symlinks. This issue is fixed in macOS Ventura 13. Processing a ma…

  • High 7.7

    sendmail: mail to root privilege escalation via sm-client.pre script

    A Improper Link Resolution Before File Access ('Link Following') vulnerability in a script called by the sendmail systemd service of openSUSE Factory allows local attackers to escalate from user mail to root. This issue affects: SUSE openSUSE Factory sendmail…

  • Medium 5.9

    ASUS Armoury Crate Service - Arbitrary File Creation via Elevation of Privilege Flaw

    Armoury Crate Service’s logging function has insufficient validation to check if the log file is a symbolic link. A physical attacker with general user privilege can modify the log file property to a symbolic link that points to arbitrary system file, causing…

  • High 8.3

    The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri

    Tauri is a framework for building binaries for all major desktop platforms. Due to missing canonicalization when `readDir` is called recursively, it was possible to display directory listings outside of the defined `fs` scope. This required a crafted symbolic…

  • Medium 5.5

    Cortex XDR Agent: Improper Link Resolution Vulnerability When Generating a Tech Support File

    An improper link resolution vulnerability in the Palo Alto Networks Cortex XDR agent on Windows devices allows a local attacker to read files on the system with elevated privileges when generating a tech support file.

  • Medium 4.6

    Extracting malicious crates can corrupt arbitrary files

    Cargo is a package manager for the rust programming language. After a package is downloaded, Cargo extracts its source code in the ~/.cargo folder on disk, making it available to the Rust projects it builds. To record when an extraction is successful, Cargo w…

  • Medium 6.1

    Measuresoft ScadaPro Server and Client Link Following

    Measuresoft ScadaPro Server and Client (All Versions) do not properly resolve links before file access; this could allow a denial-of-service condition.

  • High 7.8

    Measuresoft ScadaPro Server and Client Link Following

    Measuresoft ScadaPro Server and Client (All Versions) do not properly resolve links before file access; this could allow privilege escalation..

  • Unscored —

    It was found that the fix for CVE-2017-7500 and CVE-2017-7501 was incomplete: the check was only implemented for the pa…

  • Unscored —

    A symbolic link issue was found in rpm. It occurs when rpm sets the desired permissions and credentials after installin…

  • Unscored —

    A race condition vulnerability was found in rpm. A local unprivileged user could use this flaw to bypass the checks tha…

  • Unscored —

    An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control…

  • Unscored —

    An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the …

  • High 7.1

    keylime %post scriplet allows for privilege escalation from keylime user to root

    A UNIX Symbolic Link (Symlink) Following vulnerability in keylime of openSUSE Tumbleweed allows local attackers to escalate from the keylime user to root. This issue affects: openSUSE Tumbleweed keylime versions prior to 6.4.2-1.1.

  • Medium 5.8

    Cloudlfare WARP Arbitrary File Overwrite

    Cloudflare WARP client for Windows (up to v. 2022.5.309.0) allowed creation of mount points from its ProgramData folder. During installation of the WARP client, it was possible to escalate privileges and overwrite SYSTEM protected files.

  • Medium 4.3

    Symlink following allows leaking out-of-bounds YAML files from Argo CD repo-server

    Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. All versions of Argo CD starting with v1.3.0 are vulnerable to a symlink following bug allowing a malicious user with repository write access to leak sensitive YAML files from Argo CD's…

  • High 7.3

    Drive Composer Link Following Local Privilege Escalation Vulnerability

    Vulnerabilities in the Drive Composer allow a low privileged attacker to create and write to a file anywhere on the file system as SYSTEM with arbitrary content as long as the file does not already exist. The Drive Composer installer file allows a low-privile…

  • High 7.8

    Drive Composer Link Following Local Privilege Escalation Vulnerability

    Vulnerabilities in the Drive Composer allow a low privileged attacker to create and write to a file anywhere on the file system as SYSTEM with arbitrary content as long as the file does not already exist. The Drive Composer installer file allows a low-privile…

  • High 7.8

    Drive Composer Link Following Local Privilege Escalation Vulnerability

    Vulnerabilities in the Drive Composer allow a low privileged attacker to create and write to a file anywhere on the file system as SYSTEM with arbitrary content as long as the file does not already exist. The Drive Composer installer file allows a low-privile…

  • High 7.8

    Drive Composer Link Following Local Privilege Escalation Vulnerability

    Vulnerabilities in the Drive Composer allow a low privileged attacker to create and write to a file anywhere on the file system as SYSTEM with arbitrary content as long as the file does not already exist. The Drive Composer installer file allows a low-privile…

  • High 8.4

    Link Following in Deno

    Deno <=1.14.0 file sandbox does not handle symbolic links correctly. When running Deno with specific write access, the Deno.symlink method can be used to gain access to any directory.

  • Medium 4.3

    Symlink following allows leaking out-of-bound manifests and JSON files from Argo CD repo-server

    Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Argo CD starting with version 0.7.0 and prior to versions 2.1.15m 2.2.9, and 2.3.4 is vulnerable to a symlink following bug allowing a malicious user with repository write access to lea…

  • Critical 9.8
    CVE-2022-30333 Exploited · Ransomware Public exploit EPSS 99%

    RARLAB UnRAR before 6.12 on Linux and UNIX allows directory traversal to write to files during an extract (aka unpack) …

    KEV Aug 9, 2022
  • Medium 6.5

    Arbitrary file read

    An improper link resolution before file access ('Link Following') vulnerability has been reported to affect QNAP device running QuTScloud, QuTS hero, and QTS. If exploited, this vulnerability allows remote attackers to traverse the file system to unintended l…

  • High 7.8

    Privilege escalation in beego

    An issue was discovered in file profile.go in function MemProf in beego through 2.0.2, allows attackers to launch symlink attacks locally.

  • High 7.8

    Privilege escalation in beego

    An issue was discovered in file profile.go in function GetCPUProfile in beego through 2.0.2, allows attackers to launch symlink attacks locally.

  • High 7.1

    Data Loss/Denial of Service in SWHKD

    SWHKD 1.1.5 unsafely uses the /tmp/swhks.pid pathname. There can be data loss or a denial of service.

  • Critical 9.1

    Insecure Temporary File in SWHKD

    SWHKD 1.1.5 unsafely uses the /tmp/swhkd.pid pathname. There can be an information leak or denial of service.

  • Critical 10.0

    Western Digital My Cloud OS 5 and My Cloud Home Unauthenticated Arbitrary File Write Vulnerability in Netatalk

    The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of files. By exploiting these combination of primitives, an attacker can execute arbitrary code.

  • High 7.7

    ASUS Armoury Crate & Aura Creator Installer之ROG Live Service - Improper Link Resolution Before File Access

    ROG Live Service’s function for deleting temp files created by installation has an improper link resolution before file access vulnerability. Since this function does not validate the path before deletion, an unauthenticated local attacker can create an unexp…

  • High 7.8

    snapd could be made to escalate privileges and run programs as administrator

    snapd 2.54.2 did not properly validate the location of the snap-confine binary. A local attacker who can hardlink this binary to another location to cause snap-confine to execute other arbitrary binaries and hence gain privilege escalation. Fixed in snapd ver…

  • Medium 6.5

    Improper Link Resolution Before File Access in Jenkins Pipeline: Shared Groovy Libraries Plugin

    Jenkins Pipeline: Shared Groovy Libraries Plugin 552.vd9cc05b8a2e1 and earlier follows symbolic links to locations outside of the expected Pipeline library when reading files using the libraryResource step, allowing attackers able to configure Pipelines to re…

  • Medium 6.5

    Improper Link Resolution Before File Access in Jenkins Pipeline: Groovy Plugin

    Jenkins Pipeline: Groovy Plugin 2648.va9433432b33c and earlier follows symbolic links to locations outside of the checkout directory for the configured SCM when reading the script file (typically Jenkinsfile) for Pipelines, allowing attackers able to configur…

  • Medium 6.5

    Link Following in Jenkins Pipeline Multibranch Plugin

    Jenkins Pipeline: Multibranch Plugin 706.vd43c65dec013 and earlier follows symbolic links to locations outside of the checkout directory for the configured SCM when reading files using the readTrusted step, allowing attackers able to configure Pipelines permi…