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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

345 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, AvailabilityExecute 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.
IntegrityModify 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 …
ConfidentialityRead 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…
AvailabilityDoS: 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)
ImplementationAssume 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…
ImplementationInputs 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(…
OperationUse 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 IDTitleCVSSSeverityPublished
CVE-2025-52922 InnoShop 安全漏洞 — InnoShop 7.4 High2025-06-23
CVE-2025-34510 Sitecore XM, XC, and XP Post-Auth RCE via Zip Slip — Experience Manager 8.8 High2025-06-17
CVE-2025-33112 IBM AIX command execution — AIX 8.4 High2025-06-10
CVE-2025-3365 Relative Path Traversal in OnlineSuite — OnlineSuite 9.8 Critical2025-06-06
CVE-2025-49466 aerc 安全漏洞 — aerc 5.8 Medium2025-06-05
CVE-2025-48957 AstrBot Has Path Traversal Vulnerability in /api/chat/get_file — AstrBot 7.5 High2025-06-02
CVE-2025-47445 WordPress Eventin plugin <= 4.0.26 - Arbitrary File Download Vulnerability — Eventin 7.5 High2025-05-14
CVE-2025-22859 Fortinet FortiClientEMS 安全漏洞 — FortiClientEMS 5.0 Medium2025-05-13
CVE-2025-24350 Bosch Rexroth ctrlX OS 安全漏洞 — ctrlX OS - Device Admin 7.1 High2025-04-30
CVE-2025-24343 Bosch Rexroth ctrlX OS 安全漏洞 — ctrlX OS - Solutions 5.4 Medium2025-04-30
CVE-2023-35816 DevExpress 安全漏洞 — DevExpress 3.5 Low2025-04-28
CVE-2025-46433 JetBrains TeamCity 安全漏洞 — TeamCity 4.9 Medium2025-04-25
CVE-2025-43016 JetBrains Rider 安全漏洞 — Rider 5.4 Medium2025-04-25
CVE-2025-27791 Collabora Online Vulnerable to Arbitrary File Write — online 6.8AIMediumAI2025-04-15
CVE-2025-32017 Umbraco has a Management API Vulnerability to Path Traversal With Authenticated Users — Umbraco-CMS 8.8 High2025-04-08
CVE-2025-32409 Ratta SuperNote A6 X2 Nomad 安全漏洞 — SuperNote A6 X2 Nomad 8.1 High2025-04-07
CVE-2025-32137 WordPress s2Member plugin <= 250419 - Local File Inclusion vulnerability — s2Member 4.9 Medium2025-04-04
CVE-2023-40714 Fortinet FortiSIEM 安全漏洞 — FortiSIEM 9.7 Critical2025-04-02
CVE-2025-2007 Import Export Suite for CSV and XML Datafeed <= 7.19 - Authenticated (Subscriber+) Arbitrary File Deletion — WP Ultimate CSV Importer – Import CSV, XML & Excel into WordPress 8.1 High2025-04-01
CVE-2025-29789 OpenEMR Has Directory Traversal in Load Code feature — openemr 6.5AIMediumAI2025-03-25
CVE-2025-27553 Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT — Apache Commons VFS--2025-03-23
CVE-2024-6583 Path Traversal in stangirard/quivr — stangirard/quivr 7.5 -2025-03-20
CVE-2024-8551 Path Traversal in modelscope/agentscope — modelscope/agentscope 9.8 -2025-03-20
CVE-2024-10513 Path Traversal in mintplex-labs/anything-llm — mintplex-labs/anything-llm 7.2 -2025-03-20
CVE-2024-7058 Relative Path Traversal in parisneo/lollms-webui — parisneo/lollms 6.5 -2025-03-20
CVE-2024-6483 Arbitrary File/Directory Deletion in aimhubio/aim — aimhubio/aim 9.1 -2025-03-20
CVE-2024-9363 Unauthorized File Deletion in polyaxon/polyaxon — polyaxon/polyaxon 7.5 -2025-03-20
CVE-2024-12019 Arbitrary File Read via Document API — LogicalDOC Community 6.5 -2025-03-14
CVE-2024-54449 Remote Code Execution (RCE) via Arbitrary File Write In Document API — LogicalDOC Community 8.8 -2025-03-14
CVE-2025-2056 WP Ghost <= 5.4.01 - Unauthenticated Limited File Read — WP Ghost (Hide My WP Ghost) – Security & Firewall 7.5 High2025-03-14

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