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

目标: 1000 元 · 已筹: 1310

100%

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

CWE-36 绝对路径遍历 类弱点 111 条 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-2023-4172 Chengdu Flash Flood Disaster Monitoring and Warning System 路径遍历漏洞 — Flash Flood Disaster Monitoring and Warning System 4.3 Medium2023-08-05
CVE-2023-3765 Mlflow 安全漏洞 — mlflow/mlflow 4.3 -2023-07-19
CVE-2023-34135 SonicWALL Analytics和GMS 路径遍历漏洞 — GMS 6.5 -2023-07-13
CVE-2023-32054 Microsoft Windows Volume Shadow Copy 安全漏洞 — Windows 10 Version 1809 7.3 High2023-07-11
CVE-2023-2765 Weaver E-Office 安全漏洞 — OA 4.3 Medium2023-05-17
CVE-2023-2101 Mogu blog 路径遍历漏洞 — Mogu Blog v2 4.3 Medium2023-04-15
CVE-2023-1176 Mlflow 安全漏洞 — mlflow/mlflow 7.1 -2023-03-24
CVE-2022-20958 Cisco BroadWorks CommPilot 代码问题漏洞 — Cisco BroadWorks 8.3 High2022-11-03
CVE-2022-20791 Cisco Unified Communications Manager 路径遍历漏洞 — Cisco Unified Communications Manager 6.5 Medium2022-07-06
CVE-2022-1554 scout 路径遍历漏洞 — clinical-genomics/scout 6.5 -2022-05-03
CVE-2021-34711 Cisco IP Phone 路径遍历漏洞 — Cisco IP Phones with Multiplatform Firmware 5.5 Medium2021-10-06
CVE-2021-1617 Cisco Intersight 路径遍历漏洞 — Cisco Intersight Virtual Appliance 6.5 Medium2021-07-22
CVE-2021-1618 Cisco Intersight 操作系统命令注入漏洞 — Cisco Intersight Virtual Appliance 6.5 Medium2021-07-22
CVE-2021-21586 Dell Wyse Management Suite 路径遍历漏洞 — Wyse Management Suite 8.1 High2021-07-15
CVE-2021-32507 QSAN Storage Manager 路径遍历漏洞 — Storage Manager 6.5 Medium2021-07-07
CVE-2021-32506 QSAN Storage Manager 路径遍历漏洞 — Storage Manager 6.5 Medium2021-07-07
CVE-2021-30173 竣禾科技全方位通讯系统安全漏洞 — Quan-Fang-Wei-Tong-Xun system 6.5 Medium2021-05-07
CVE-2021-1296 多款Cisco产品路径遍历漏洞 — Cisco Small Business RV Series Router Firmware 7.5 High2021-02-04
CVE-2021-1297 多款Cisco产品路径遍历漏洞 — Cisco Small Business RV Series Router Firmware 7.5 High2021-02-04
CVE-2018-20250 WinRar 路径遍历漏洞 — WinRAR 9.8 -2019-02-05
CVE-2017-7929 Advantech WebAccess 路径遍历漏洞 — Advantech WebAccess 4.3 -2017-05-06

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