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

目标: 1000 元 · 已筹: 1336

100%

CWE-36 绝对路径遍历 类漏洞列表 116

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

CWE-36绝对路径遍历属于文件访问控制漏洞。当软件利用外部输入构建受限目录内的文件路径时,若未正确过滤绝对路径序列(如“/abs/path”),攻击者即可绕过限制,访问受限目录外的敏感文件或系统资源。开发者应严格验证输入,禁止使用绝对路径,并采用白名单机制或规范化路径处理,确保最终解析路径始终位于预期的安全沙箱内。

MITRE CWE 官方描述
CWE:CWE-36 绝对路径遍历 (Absolute Path Traversal) 英文:该产品使用外部输入来构建一个应位于受限目录内的路径名,但它未能正确中和绝对路径序列(如 "/abs/path"),这些序列可能解析为位于该目录之外的位置。 这允许攻击者遍历文件系统,以访问受限目录之外的文件或目录。
常见影响 (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. If the targeted file is used for a security mechanism, then the attacker may be able to bypass that mechanism. For example, by reading a password file, the attacker could conduct brute force password guessing a…
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…
Effectiveness: High
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.
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)
In the example below, the path to a dictionary file is read from a system property and used to initialize a File object.
String filename = System.getProperty("com.domain.application.dictionaryFile"); File dictionaryFile = new File(filename);
Bad · Java
This script intends to read a user-supplied file from the current directory. The user inputs the relative path to the file and the script uses Python's os.path.join() function to combine the path to the current working directory with the provided path to the specified file. This results in an absolute path to the desired file. If the file does not exist when the script attempts to read it, an erro…
import os import sys def main(): filename = sys.argv[1] path = os.path.join(os.getcwd(), filename) try: with open(path, 'r') as f: file_data = f.read() except FileNotFoundError as e: print("Error - file not found") main()
Bad · Python
import os import sys def main(): filename = sys.argv[1] path = os.path.normpath(f"{os.getcwd()}{os.sep}{filename}") if path.startswith("/home/cwe/documents/"): try: with open(path, 'r') as f: file_data = f.read() except FileNotFoundError as e: print("Error - file not found") main()
Good · Python
CVE ID标题CVSS风险等级Published
CVE-2025-36357 AMD Store Queue 安全漏洞 — IBM Planning Analytics Local 8.0 High2025-11-17
CVE-2025-7846 WordPress plugin User Extra Fields 安全漏洞 — WordPress User Extra Fields 8.8 High2025-10-31
CVE-2025-8575 WordPress plugin LWS Cleaner 安全漏洞 — LWS Cleaner 7.2 High2025-09-12
CVE-2025-9516 WordPress plugin atec Debug 安全漏洞 — atec Debug 4.9 Medium2025-09-04
CVE-2025-9518 WordPress plugin atec Debug 安全漏洞 — atec Debug 7.2 High2025-09-04
CVE-2025-9259 WebITR 安全漏洞 — WebITR 6.5 Medium2025-08-22
CVE-2025-9258 Uniong WebITR 安全漏洞 — WebITR 6.5 Medium2025-08-22
CVE-2025-9257 Uniong WebITR 安全漏洞 — WebITR 6.5 Medium2025-08-22
CVE-2025-9256 WebITR 安全漏洞 — WebITR 6.5 Medium2025-08-22
CVE-2025-57790 Commvault 安全漏洞 — CommCell 9.8 -2025-08-20
CVE-2025-8912 WellChoose Organization Portal System 安全漏洞 — Organization Portal System 7.5 High2025-08-13
CVE-2025-8909 WellChoose Organization Portal System 安全漏洞 — Organization Portal System 6.5 Medium2025-08-13
CVE-2025-8213 WordPress plugin NinjaScanner 安全漏洞 — NinjaScanner – Virus & Malware scan 7.2 High2025-07-31
CVE-2025-53079 SAMSUNG DMS 安全漏洞 — Data Management Server 4.9 Medium2025-07-29
CVE-2025-8009 WordPress plugin Security Ninja 安全漏洞 — Security Ninja – WordPress Security Plugin & Firewall 4.9 Medium2025-07-24
CVE-2025-6381 WordPress plugin BeeTeam368 Extensions 安全漏洞 — BeeTeam368 Extensions 8.8 High2025-06-28
CVE-2025-53392 Netgate pfSense CE 安全漏洞 — pfSense 5.0 Medium2025-06-28
CVE-2025-5927 WordPress plugin Everest Forms 安全漏洞 — Everest Forms Pro 7.5 High2025-06-25
CVE-2025-4799 WordPress plugin WP-DownloadManager 安全漏洞 — WP-DownloadManager 7.2 High2025-06-11
CVE-2025-36574 Dell Wyse Management Suite WMS 安全漏洞 — Wyse Management Suite 8.2 High2025-06-10
CVE-2024-13945 ABB多款产品 安全漏洞 — ASPECT-Enterprise 6.0 Medium2025-05-23
CVE-2024-48850 ABB多款产品 安全漏洞 — ASPECT-Enterprise 7.2 High2025-05-22
CVE-2025-46822 Java-springboot-codebase 安全漏洞 — Java-springboot-codebase 7.5AIHighAI2025-05-21
CVE-2024-10833 DB-GPT 路径遍历漏洞 — eosphoros-ai/db-gpt 8.8 -2025-03-20
CVE-2024-12375 Stable Diffusion web UI 安全漏洞 — automatic1111/stable-diffusion-webui 7.5 -2025-03-20
CVE-2024-6854 H2O 安全漏洞 — h2oai/h2o-3 7.5 -2025-03-20
CVE-2024-10047 LoLLMs Web UI 安全漏洞 — parisneo/lollms-webui 5.3 -2025-03-20
CVE-2024-10831 DB-GPT 安全漏洞 — eosphoros-ai/db-gpt 7.5 -2025-03-20
CVE-2024-8501 AgentScope 安全漏洞 — modelscope/agentscope 8.8 -2025-03-20
CVE-2024-48248 Nakivo Backup & Replication 安全漏洞 — Backup & Replication Director 8.6 High2025-03-04

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