目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CWE-23 相对路径遍历 类漏洞列表 361

CWE-23 相对路径遍历 类弱点 361 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-23 相对路径遍历漏洞源于软件未正确过滤外部输入中的“..”序列,导致构造的文件路径突破受限目录边界。攻击者通常利用此缺陷读取或修改系统敏感文件,获取未授权访问权限。开发者应避免直接使用用户输入拼接路径,需通过白名单验证、规范化路径或限制访问范围来彻底中和危险字符,从而防止路径逃逸。

MITRE CWE 官方描述
CWE:CWE-23 Relative Path Traversal(相对路径遍历) 英文:产品使用外部输入来构建一个应位于受限目录内的路径名,但它未能正确中和(neutralize)诸如“..”之类的序列,这些序列可解析为该目录之外的位置。
常见影响 (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…
缓解措施 (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
代码示例 (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标题CVSS风险等级Published
CVE-2025-32017 Umbraco 安全漏洞 — 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 plugin s2Member 安全漏洞 — s2Member 4.9 Medium2025-04-04
CVE-2023-40714 Fortinet FortiSIEM 安全漏洞 — FortiSIEM 9.7 Critical2025-04-02
CVE-2025-2007 WordPress plugin Import Export Suite for CSV and XML Datafeed 安全漏洞 — WP Ultimate CSV Importer – Import CSV, XML & Excel into WordPress 8.1 High2025-04-01
CVE-2025-29789 OpenEMR 安全漏洞 — openemr 6.5AIMediumAI2025-03-25
CVE-2025-27553 Apache Commons VFS 安全漏洞 — Apache Commons VFS--2025-03-23
CVE-2024-6583 Quivr 安全漏洞 — stangirard/quivr 7.5 -2025-03-20
CVE-2024-8551 AgentScope 安全漏洞 — modelscope/agentscope 9.8 -2025-03-20
CVE-2024-10513 AnythingLLM 安全漏洞 — mintplex-labs/anything-llm 7.2 -2025-03-20
CVE-2024-7058 Open WebUI 安全漏洞 — parisneo/lollms 6.5 -2025-03-20
CVE-2024-6483 Aim 安全漏洞 — aimhubio/aim 9.1 -2025-03-20
CVE-2024-9363 polyaxon 安全漏洞 — polyaxon/polyaxon 7.5 -2025-03-20
CVE-2024-12019 LogicalDOC 安全漏洞 — LogicalDOC Community 6.5 -2025-03-14
CVE-2024-54449 LogicalDOC 安全漏洞 — LogicalDOC Community 8.8 -2025-03-14
CVE-2025-2056 WordPress plugin WP Ghost 安全漏洞 — WP Ghost (Hide My WP Ghost) – Security & Firewall 7.5 High2025-03-14
CVE-2025-23360 NVIDIA Nemo Framework 安全漏洞 — NeMo Framework 7.1 High2025-03-11
CVE-2025-26645 Microsoft Remote Desktop Client 安全漏洞 — Remote Desktop client for Windows Desktop 8.8 High2025-03-11
CVE-2025-27610 Rack 安全漏洞 — rack 7.5 High2025-03-10
CVE-2025-23410 Apollo 安全漏洞 — Apollo 9.8 Critical2025-03-04
CVE-2025-25130 WordPress plugin Delete Comments By Status 安全漏洞 — Delete Comments By Status 7.5 High2025-03-03
CVE-2025-27410 PwnDoc 安全漏洞 — pwndoc 6.5 Medium2025-02-28
CVE-2024-56340 IBM Cognos Analytics 安全漏洞 — Cognos Analytics 6.5 Medium2025-02-28
CVE-2024-47051 Mautic 安全漏洞 — mautic/core 9.1 Critical2025-02-26
CVE-2025-20059 Ping Identity PingAM 安全漏洞 — PingAM Java Policy Agent 8.8 -2025-02-20
CVE-2025-0822 WordPress plugin Bit Assist 安全漏洞 — Chat Widget: Floating Customer Support Button for 30+ Channels, Supporting SMS, Calls, and Chat – Bit Assist 6.5 Medium2025-02-15
CVE-2024-13791 WordPress plugin Bit Assist 安全漏洞 — Chat Widget: Floating Customer Support Button for 30+ Channels, Supporting SMS, Calls, and Chat – Bit Assist 4.9 Medium2025-02-14
CVE-2025-26349 Q-Free MAXTIME Suite 安全漏洞 — MaxTime 7.2 High2025-02-12
CVE-2024-54462 image_picker_android 安全漏洞 — image_picker_android 6.6 -2025-01-29
CVE-2024-54461 file_selector_android 安全漏洞 — file_selector_android 6.6 -2025-01-29

CWE-23(相对路径遍历) 是常见的弱点类别,本平台收录该类弱点关联的 361 条 CVE 漏洞。