Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-23 (相对路径遍历) — Vulnerability Class 413

413 vulnerabilities classified as CWE-23 (相对路径遍历). AI Chinese analysis included.

CWE-23, Relative Path Traversal, is a critical input validation weakness where applications fail to properly sanitize user-supplied data before constructing file system paths. Attackers typically exploit this vulnerability by injecting directory traversal sequences, such as “../”, into input fields to manipulate the resulting pathname. This manipulation allows them to escape the intended restricted directory and access sensitive files located elsewhere on the server, potentially leading to unauthorized data disclosure or remote code execution. To mitigate this risk, developers must rigorously validate and neutralize all external inputs, ensuring they do not contain relative path components. Implementing strict allowlists for permitted characters, using canonicalization functions to resolve paths before access checks, and employing chroot jails or containerization to isolate file system access are essential defensive strategies that effectively prevent attackers from traversing outside the designated directory boundaries.

MITRE CWE Description
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Common Consequences (4)
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
The attacker may be able to create or overwrite critical files that are used to execute code, such as programs or libraries.
Integrity Modify Files or Directories
The attacker may be able to overwrite or create critical files, such as programs, libraries, or important data. If the targeted file is used for a security mechanism, then the attacker may be able to bypass that mechanism. For example, appending a new account at the end of a password file may allow …
Confidentiality Read Files or Directories
The attacker may be able read the contents of unexpected files and expose sensitive data by traversing the file system to access files or directories that are outside of the restricted directory. If the targeted file is used for a security mechanism, then the attacker may be able to bypass that mech…
Availability DoS: Crash, Exit, or Restart
The attacker may be able to overwrite, delete, or corrupt unexpected critical files such as programs, libraries, or important data. This may prevent the product from working at all and in the case of a protection mechanisms such as authentication, it has the potential to lockout every user of the pr…
Mitigations (3)
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…
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. Use a built-in path canonicalization function (such as realpath(…
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].
Effectiveness: Moderate
Examples (2)
The following URLs are vulnerable to this attack:
http://example.com/get-files.jsp?file=report.pdf http://example.com/get-page.php?home=aaa.html http://example.com/some-page.asp?page=index.html
Bad · Other
http://example.com/get-files?file=../../../../somedir/somefile http://example.com/../../../../etc/shadow http://example.com/get-files?file=../../../../etc/passwd
Attack · Other
The following code could be for a social networking application in which each user's profile information is stored in a separate file. All files are stored in a single directory.
my $dataPath = "/users/cwe/profiles"; my $username = param("user"); my $profilePath = $dataPath . "/" . $username; open(my $fh, "<", $profilePath) || ExitError("profile read error: $profilePath"); print "<ul>\n"; while (<$fh>) { print "<li>$_</li>\n"; } print "</ul>\n";
Bad · Perl
../../../etc/passwd
Attack
CVE ID Title CVSS Severity Published
CVE-2025-60023 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 4.0 Medium 2025-10-23
CVE-2025-59776 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 4.0 Medium 2025-10-23
CVE-2025-58429 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 7.5 High 2025-10-23
CVE-2025-58078 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 7.5 High 2025-10-23
CVE-2025-58456 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 6.8 Medium 2025-10-23
CVE-2025-62498 AutomationDirect Productivity Suite Relative Path Traversal — Productivity Suite 8.8 High 2025-10-23
CVE-2025-11898 Flowring Technology|Agentflow - Arbitrary File Reading through Path Traversal — Agentflow 7.5 High 2025-10-17
CVE-2025-10249 Slider Revolution <= 6.7.37 - Missing Authorization to Authenticated (Contributor+) Arbitrary File Read — Slider Revolution 6.5 Medium 2025-10-09
CVE-2025-62187 Ankitects Anki 安全漏洞 — Anki 2.9 Low 2025-10-07
CVE-2025-59835 LangBot has a cross-directory file upload vulnerability, which could lead to system takeover — LangBot 8.8AI High AI 2025-10-02
CVE-2025-59682 Django 安全漏洞 — Django 3.1 Low 2025-10-01
CVE-2025-60020 NNCP 安全漏洞 — NNCP 6.4 Medium 2025-09-24
CVE-2025-59341 Local File Inclusion in esm.sh — esm.sh 7.5AI High AI 2025-09-17
CVE-2025-59456 JetBrains TeamCity 安全漏洞 — TeamCity 5.5 Medium 2025-09-17
CVE-2025-55115 BMC Control-M/Agent path traversal local privilege escalation — Control-M/Agent 8.8 High 2025-09-16
CVE-2025-10203 Relative Path Traversal Vulnerability in Digilent WaveForms — WaveForms 7.8 High 2025-09-15
CVE-2025-58760 Tautulli vulnerable to Unauthenticated Path Traversal in `/image` endpoint — Tautulli 8.6 High 2025-09-09
CVE-2025-53609 Fortinet FortiWeb 安全漏洞 — FortiWeb 4.7 Medium 2025-09-09
CVE-2025-58752 Vite's `server.fs` settings were not applied to HTML files — vite 4.7AI Medium AI 2025-09-08
CVE-2025-25048 IBM Jazz Foundation path traversal — Jazz Foundation 6.5 Medium 2025-09-04
CVE-2025-55748 XWiki Platform's configuration files can be accessed through jsx and sx endpoints — xwiki-platform 7.5AI High AI 2025-09-03
CVE-2025-55747 XWiki Platform's configuration files can be accessed through the webjars API — xwiki-platform 7.5AI High AI 2025-09-03
CVE-2025-9570 Sunnet|eHRD CTMS - Arbitrary File Reading through Path Traversal — eHRD CTMS 4.9 Medium 2025-09-01
CVE-2025-55202 Opencast has a partial path traversal vulnerability in UI config — opencast 6.5 - 2025-08-29
CVE-2025-9639 Ai3|QbiCRMGateway - Arbitrary File Reading through Path Traversal — QbiCRMGateway 7.5 High 2025-08-29
CVE-2021-4459 SMA: Directory Traversal in Sunny Boy <3.10.27.R — Boy 3.0 6.5 Medium 2025-08-27
CVE-2025-8464 Drag and Drop Multiple File Upload for Contact Form 7 <= 1.3.9.0 - Directory Traversal via `wpcf7_guest_user_id` Cookie — Drag and Drop Multiple File Upload for Contact Form 7 5.3 Medium 2025-08-16
CVE-2024-48892 Fortinet FortiSOAR 安全漏洞 — FortiSOAR 6.4 Medium 2025-08-12
CVE-2024-40588 Fortinet多款产品 安全漏洞 — FortiCamera 4.2 Medium 2025-08-12
CVE-2025-53779 Windows Kerberos Elevation of Privilege Vulnerability — Windows Server 2025 7.2 High 2025-08-12

Vulnerabilities classified as CWE-23 (相对路径遍历) represent 413 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.