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

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

408 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-2026-57871 MicroRealEstate 路径遍历漏洞 — MicroRealEstate--2026-07-07
CVE-2025-53829 ownCloud 10 is vulnerable to Relative Path Traversal — ownCloud 10 8.0 High2026-07-06
CVE-2026-58522 Microsoft Edge for Android Information Disclosure Vulnerability — Microsoft Edge (Chromium-based) 6.8 Medium2026-07-03
CVE-2026-57988 Microsoft Edge (Chromium-based) Remote Code Execution Vulnerability — Microsoft Edge (Chromium-based) 7.1 High2026-07-03
CVE-2026-44941 libzypp path traversal via "keyhint" in repomd.xml — libzypp 8.4 High2026-07-02
CVE-2026-8387 Relative Path Traversal in allegroai/clearml — allegroai/clearml--2026-07-01
CVE-2026-44948 Path Traversal in Rancher Fleet ImageScan GitRepo Path Handler — Rancher--2026-06-30
CVE-2026-25707 Handcrafted repo metadata may cause arbitrary local files to be overwritten by libzypp — libzypp 8.8 High2026-06-29
CVE-2026-50016 pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement — pnpm 8.8 High2026-06-25
CVE-2026-45188 Apache Kvrocks: Replication Fullsync Path Traversal via Unvalidated Filename Handling — Apache Kvrocks--2026-06-25
CVE-2026-52813 Gogs: Path Traversal in organization name results in RCE through Git hooks — gogs 10.0 Critical2026-06-24
CVE-2026-41046 path traversal via `config` parameter in qSnapper — qSnapper 7.3 High2026-06-22
CVE-2026-10720 MicroCeph path traversal issue in the remote-import API — Microceph--2026-06-19
CVE-2026-8100 Progress Chef Chef360 路径遍历漏洞 — Chef360--2026-06-18
CVE-2026-34026 Path traversal in Wertheim SafeController Software allows authenticated users to download arbitrary files — Wertheim SafeController Software for VAULT ROOMS (Safe Deposit Locker System)--2026-06-15
CVE-2026-47287 Visual Studio Code Tampering Vulnerability — Visual Studio Code 6.5 Medium2026-06-09
CVE-2026-48681 OpenStack Ironic 安全漏洞 — Ironic 5.9 Medium2026-06-04
CVE-2026-5422 Path Traversal in jupyter/jupyter — jupyter/jupyter--2026-06-02
CVE-2026-10074 Interinfo|DreamMaker - Arbitrary File Read — DreamMaker 4.9 Medium2026-05-29
CVE-2026-10073 Interinfo|DreamMaker - Arbitrary File Read — DreamMaker 7.5 High2026-05-29
CVE-2026-8326 Remote Spark SparkView Path Traversal in RDP Drive Redirection leading to RCE — SparkView--2026-05-29
CVE-2025-41280 Waterfall WF-500 安全漏洞 — WF-500--2026-05-29
CVE-2025-41271 Waterfall WF-500 安全漏洞 — WF-500--2026-05-29
CVE-2025-41268 Waterfall WF-500 安全漏洞 — WF-500--2026-05-29
CVE-2025-48977 Apache Ignite: REST HTTP arbitrary file read vulnerability — Apache Ignite--2026-05-28
CVE-2026-8361 Gladinet Triofox Path Traversal in WOSDefaultHttpModule.dll — Triofox 7.5 High2026-05-27
CVE-2026-34926 TrendAI Apex One 安全漏洞 — TrendAI Apex One 6.7 Medium2026-05-21
CVE-2026-23734 XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash — xwiki-commons--2026-05-20
CVE-2026-8073 Kirki <= 6.0.6 - Unauthenticated Limited Arbitrary File Read and Deletion via downloadZIP — Kirki – Freeform Page Builder, Website Builder & Customizer 7.5 High2026-05-19
CVE-2026-41948 Dify v1.14.1 Path Traversal via Plugin Daemon Internal API Access — dify 9.4 Critical2026-05-18

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