目标达成 感谢每一位支持者 — 我们达成了 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-2024-13160 Ivanti EPM 安全漏洞 — Endpoint Manager 9.8 Critical2025-01-14
CVE-2024-13161 Ivanti EPM 安全漏洞 — Endpoint Manager 9.8 Critical2025-01-14
CVE-2024-10811 Ivanti EPM 安全漏洞 — Endpoint Manager 9.8 Critical2025-01-14
CVE-2024-51549 ABB ASPECT 安全漏洞 — ASPECT-Enterprise 10.0 Critical2024-12-05
CVE-2024-11978 Interinfo DreamMaker 安全漏洞 — DreamMaker 7.5 High2024-11-29
CVE-2024-10651 CHANGING IDExpert 安全漏洞 — IDExpert 4.9 Medium2024-11-01
CVE-2024-47883 Butterfly 安全漏洞 — simile-butterfly 9.1 Critical2024-10-24
CVE-2024-20379 Cisco Secure Firewall Management Center 安全漏洞 — Cisco Firepower Management Center 6.5 Medium2024-10-23
CVE-2024-9924 Hgiga OAKlouds 安全漏洞 — OAKlouds 9.8 Critical2024-10-14
CVE-2024-45290 PhpSpreadsheet 安全漏洞 — PhpSpreadsheet 7.7 High2024-10-07
CVE-2024-45291 PhpSpreadsheet 安全漏洞 — PhpSpreadsheet 6.3 Medium2024-10-07
CVE-2024-8497 Franklin Fueling TS-550 EVO Automatic Tank Gauge 安全漏洞 — TS-550 EVO 7.5 High2024-09-24
CVE-2024-8778 SYSCOM OMFLOW 安全漏洞 — OMFLOW 6.5 Medium2024-09-16
CVE-2024-7323 DigiWin EasyFlow .NET 安全漏洞 — EasyFlow .NET 6.5 Medium2024-08-02
CVE-2024-20401 Cisco Secure Email 安全漏洞 — Cisco Secure Email 9.8 Critical2024-07-17
CVE-2024-6250 LoLLMs 安全漏洞 — parisneo/lollms-webui 7.5AIHighAI2024-06-27
CVE-2024-4881 LoLLMs 安全漏洞 — parisneo/lollms 9.1AICriticalAI2024-06-06
CVE-2024-2362 LoLLMs 安全漏洞 — parisneo/lollms-webui 9.1AICriticalAI2024-06-06
CVE-2024-2548 LoLLMs 安全漏洞 — parisneo/lollms-webui 6.2AIMediumAI2024-06-06
CVE-2023-41830 Motorola Ready For 安全漏洞 — Phones 6.5 Medium2024-05-03
CVE-2024-29053 Microsoft Defender 安全漏洞 — Microsoft Defender for IoT 8.8 High2024-04-09
CVE-2024-21323 Microsoft Defender 安全漏洞 — Microsoft Defender for IoT 8.8 High2024-04-09
CVE-2024-1703 CRMEB 安全漏洞 — CRMEB 3.5 Low2024-02-21
CVE-2023-50955 IBM InfoSphere Information Server 安全漏洞 — InfoSphere Information Server 2.4 Low2024-02-21
CVE-2023-5390 Honeywell Experion ControlEdge VirtualUOC和ControlEdge UOC 安全漏洞 — ControlEdge UOC 5.3 Medium2024-01-31
CVE-2023-30970 Palantir Gotham 安全漏洞 — com.palantir.gotham:blackbird-witchcraft 6.5 Medium2024-01-29
CVE-2023-5115 ansible 安全漏洞 — Red Hat Ansible Automation Platform 2.3 for RHEL 8 6.3 Medium2023-12-18
CVE-2023-36786 Microsoft Skype for Business 安全漏洞 — Skype for Business Server 2015 CU13 7.2 High2023-10-10
CVE-2023-5022 Desdev DedeCMS 安全漏洞 — DedeCMS 5.5 Medium2023-09-17
CVE-2023-40597 Splunk 路径遍历漏洞 — Splunk Enterprise 7.8 High2023-08-30

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