Skip to content
OpenAdvisories

Weakness (CWE)

CWE-61: UNIX Symbolic Link (Symlink) Following

Compound Incomplete

The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.

How to prevent it (2 mitigations)
  1. Implementation

    Symbolic link attacks often occur when a program creates a tmp directory that stores files/links. Access to the directory should be restricted to the program as to prevent attackers from manipulating the files.

  2. 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-61

3 results · Clear filters · Feed

  • Critical 9.5
    CVE-2025-68937 Public exploit

    Forgejo before 13.0.2 allows attackers to write to unintended files, and possibly obtain server shell access, because o…

  • Critical 10.0
    CVE-2024-28189 Public exploit

    Judge0 vulnerable to Sandbox Escape Patch Bypass via chown running on Symbolic Link

    Judge0 is an open-source online code execution system. The application uses the UNIX chown command on an untrusted file within the sandbox. An attacker can abuse this by creating a symbolic link (symlink) to a file outside the sandbox, allowing the attacker t…

  • Critical 10.0
    CVE-2024-28185 Public exploit

    Judge0 vulnerable to Sandbox Escape via Symbolic Link

    Judge0 is an open-source online code execution system. The application does not account for symlinks placed inside the sandbox directory, which can be leveraged by an attacker to write to arbitrary files and gain code execution outside of the sandbox. When ex…