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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-29 (路径遍历:’..filename’) — Vulnerability Class 61

61 vulnerabilities classified as CWE-29 (路径遍历:’..filename’). AI Chinese analysis included.

CWE-29 represents a critical input validation weakness where software fails to properly sanitize path traversal sequences, specifically the leading backslash-dot-dot notation. Attackers typically exploit this vulnerability by injecting malicious characters into user-supplied input fields, such as file upload forms or URL parameters, to manipulate file system navigation. By appending these sequences to a requested filename, adversaries can escape the intended restricted directory and access sensitive system files, configuration data, or other resources located outside the authorized scope. This unauthorized access can lead to severe data breaches, information disclosure, or remote code execution if the compromised files are executable. To prevent such attacks, developers must rigorously validate and sanitize all user inputs, ensuring that only alphanumeric characters and safe path separators are accepted. Additionally, implementing strict allow-lists for permitted file extensions and using canonical path resolution before accessing files helps neutralize these traversal attempts effectively.

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 '\..\filename' (leading backslash dot dot) sequences that can resolve to a location that is outside of that directory. This allows attackers to traverse the file system to access files or directories that are outside of the restricted directory. This is similar to CWE-25, except using "\" instead of "/". Sometimes a program checks for "..\" at the beginning of the input, so a "\..\" can bypass that check. It is also useful for bypassing path traversal protection schemes that only assume that the "/" separator is valid.
Common Consequences (1)
Confidentiality, IntegrityRead Files or Directories, Modify Files or Directories
Mitigations (2)
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.
CVE IDTitleCVSSSeverityPublished
CVE-2022-2788 Emerson Proficy Machine Edition 路径遍历漏洞 — Proficy Machine Edition 3.9 Low2022-08-19

Vulnerabilities classified as CWE-29 (路径遍历:’..filename’) represent 61 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.