Skip to content
OpenAdvisories

Weakness (CWE)

CWE-36: Absolute Path Traversal

Base Draft

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize absolute path sequences such as "/abs/path" that can resolve to a location that is outside of that directory.

How to prevent it (3 mitigations)
  1. Implementation

    Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

    When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

    Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

    When validating filenames, use stringent allowlists that limit the character set to be used. If feasible, only allow a single "." character in the filename to avoid weaknesses such as CWE-23, and exclude directory separators such as "/" to avoid CWE-36. Use a list of allowable file extensions, which will help to avoid CWE-434.

    Do not rely exclusively on a filtering mechanism that removes potentially dangerous characters. This is equivalent to a denylist, which may be incomplete (CWE-184). For example, filtering "/" is insufficient protection if the filesystem also supports the use of "\" as a directory separator. Another possible error could occur when the filtering is applied in a way that still produces dangerous data (CWE-182). For example, if "../" sequences are removed from the ".../...//" string in a sequential fashion, two instances of "../" would be removed from the original string, but the remaining characters would still form the "../" string.

  2. Implementation

    Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

  3. Operation

    Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].

Source: MITRE CWE-36

65 results · Clear filters · Feed

  • Medium 6.5

    authenticated arbitrary file read vulnerability

    Abacus ERP is versions older than 2024.210.16036, 2023.205.15833, 2022.105.15542 are affected by an authenticated arbitrary file read vulnerability.

  • Medium 5.3

    Absolute Path Traversal Vulnerability

    In Progress® Telerik® Reporting versions prior to 2025 Q1 (19.0.25.211), information disclosure is possible by a local threat actor through an absolute path vulnerability.

  • Medium 5.0

    libarchiveplugin.cpp in KDE ark before 24.12.0 can extract to an absolute path from an archive.

  • Medium 4.9

    CHANGING Information Technology IDExpert - Arbitrary File Read through Path Traversal

    IDExpert from CHANGING Information Technology does not properly validate a specific parameter in the administrator interface, allowing remote attackers with administrator privileges to exploit this vulnerability to read arbitrary system files.

  • Medium 6.5

    A vulnerability in the web-based management interface of Cisco Secure Firewall Management Center (FMC) Software, former…

  • Medium 6.3

    Path traversal and Server-Side Request Forgery in HTML writer when embedding images is enabled in PHPSpreadsheet

    PHPSpreadsheet is a pure PHP library for reading and writing spreadsheet files. It's possible for an attacker to construct an XLSX file that links images from arbitrary paths. When embedding images has been enabled in HTML writer with `$writer->setEmbedImages…

  • Medium 6.5

    The SYSCOM Group OMFLOW - Arbitrary File Read

    OMFLOW from The SYSCOM Group does not properly validate user input of the download functionality, allowing remote attackers with regular privileges to read arbitrary system files.

  • Medium 6.5

    Digiwin EasyFlow .NET - Arbitrary File Download

    Digiwin EasyFlow .NET lacks proper access control for specific functionality, and the functionality do not adequately filter user input. A remote attacker with regular privilege can exploit this vulnerability to download arbitrary files from the remote server…

  • Medium 6.5

    An improper absolute path traversal vulnerability was reported for the Ready For application allowing a local applicati…

  • Medium 5.3

    An attacker could potentially exploit this vulnerability, leading to files being read from the Honeywell Experion Contr…

  • Medium 6.5

    Gotham table and Forward App Path traversal

    Gotham Table service and Forward App were found to be vulnerable to a Path traversal issue allowing an authenticated user to read arbitrary files on the file system.

  • Medium 6.3

    Ansible: malicious role archive can cause ansible-galaxy to overwrite arbitrary files

    An absolute path traversal attack exists in the Ansible automation platform. This flaw allows an attacker to craft a malicious Ansible role and make the victim execute the role. A symlink can be used to overwrite a file outside of the extraction path.

  • Medium 5.5

    DedeCMS select_templets_post.php absolute path traversal

    A vulnerability has been found in DedeCMS up to 5.7.100 and classified as critical. Affected by this vulnerability is an unknown functionality of the file /include/dialog/select_templets_post.php. The manipulation of the argument activepath leads to absolute …

  • Medium 4.3

    Chengdu Flash Flood Disaster Monitoring and Warning System FileHandler.ashx absolute path traversal

    A vulnerability, which was classified as problematic, has been found in Chengdu Flash Flood Disaster Monitoring and Warning System 2.0. This issue affects some unknown processing of the file \Service\FileHandler.ashx. The manipulation of the argument FileDire…

  • Medium 4.3

    Weaver OA downfile.php absolute path traversal

    A vulnerability has been found in Weaver OA up to 9.5 and classified as problematic. This vulnerability affects unknown code of the file /E-mobile/App/System/File/downfile.php. The manipulation of the argument url leads to absolute path traversal. The attack …

  • Medium 4.3

    moxi624 Mogu Blog v2 uploadPicsByUrl uploadPictureByUrl absolute path traversal

    A vulnerability, which was classified as problematic, has been found in moxi624 Mogu Blog v2 up to 5.2. This issue affects the function uploadPictureByUrl of the file /mogu-picture/file/uploadPicsByUrl. The manipulation of the argument urlList leads to absolu…

  • Medium 5.3

    Absolute Path Traversal in mlflow/mlflow

    Absolute Path Traversal in GitHub repository mlflow/mlflow prior to 2.2.2.

  • Medium 6.5

    Cisco Unified Communications Products Arbitrary File Read Vulnerability

    A vulnerability in the database user privileges of Cisco Unified Communications Manager (Unified CM), Cisco Unified Communications Manager Session Management Edition (Unified CM SME), and Cisco Unified Communications Manager IM & Presence Service (Unified…

  • Medium 6.8

    Path Traversal due to `send_file` call in clinical-genomics/scout

    Path Traversal due to `send_file` call in GitHub repository clinical-genomics/scout prior to 4.52.

  • Medium 5.5

    Cisco IP Phone Software Arbitrary File Read Vulnerability

    A vulnerability in the debug shell of Cisco IP Phone software could allow an authenticated, local attacker to read any file on the device file system. This vulnerability is due to insufficient input validation. An attacker could exploit this vulnerability by …

  • Medium 6.5

    Cisco Intersight Virtual Appliance Vulnerabilities

    Multiple vulnerabilities in the web-based management interface of Cisco Intersight Virtual Appliance could allow an authenticated, remote attacker to conduct a path traversal or command injection attack on an affected system. These vulnerabilities are due to …

  • Medium 6.5

    Cisco Intersight Virtual Appliance Vulnerabilities

    Multiple vulnerabilities in the web-based management interface of Cisco Intersight Virtual Appliance could allow an authenticated, remote attacker to conduct a path traversal or command injection attack on an affected system. These vulnerabilities are due to …

  • Medium 6.5

    QSAN Storage Manager - Absolute Path Traversal via FileDownload function

    Absolute Path Traversal vulnerability in FileDownload in QSAN Storage Manager allows remote authenticated attackers download arbitrary files via the Url path parameter. The referred vulnerability has been solved with the updated version of QSAN Storage Manage…

  • Medium 6.5

    QSAN Storage Manager - Absolute Path Traversal via GetImage function

    Absolute Path Traversal vulnerability in GetImage in QSAN Storage Manager allows remote authenticated attackers download arbitrary files via the Url path parameter. The referred vulnerability has been solved with the updated version of QSAN Storage Manager v3…

  • Medium 6.5

    Jun-He Technology Ltd. Quan-Fang-Wei-Tong-Xun system - Local File Inclusion

    Local File Inclusion vulnerability of the omni-directional communication system allows remote authenticated attacker inject absolute path into Url parameter and access arbitrary file.