3427 vulnerabilities classified as CWE-22 (对路径名的限制不恰当(路径遍历)). AI Chinese analysis included.
CWE-22 represents a critical input validation weakness where software fails to properly sanitize external input before constructing file paths. Attackers typically exploit this vulnerability by injecting directory traversal sequences, such as “../”, into user-supplied parameters. These malicious inputs allow the application to resolve file references outside the intended restricted directory, potentially granting unauthorized access to sensitive system files, configuration data, or source code. To mitigate this risk, developers must implement rigorous input validation techniques, ensuring that all path components are strictly checked against allowed characters and structures. Additionally, employing canonicalization to resolve symbolic links and relative paths before validation, combined with strict chroot jails or sandboxing, effectively confines file operations to designated directories, thereby neutralizing the potential for path traversal attacks and preserving system integrity.
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";../../../etc/passwdString filename = System.getProperty("com.domain.application.dictionaryFile"); File dictionaryFile = new File(filename);| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2016-10331 | Synology Photo Station 路径遍历漏洞 — Synology Photo Station | 5.3 | - | 2017-05-12 |
| CVE-2017-6629 | Cisco Unity Connection 安全漏洞 — Cisco Unity Connection | 7.5 | - | 2017-05-03 |
| CVE-2017-3851 | Cisco IOx Cisco Application-hosting Framework 路径遍历漏洞 — Cisco Application-Hosting Framework | 7.5 | - | 2017-03-22 |
| CVE-2014-2352 | Cogent DataHub Path Traversal — DataHub | 9.1 | - | 2014-05-30 |
| CVE-2014-0780 | InduSoft Web Studio Path Traversal — Web Studio | 9.8 | - | 2014-04-25 |
| CVE-2014-0750 | GE Proficy HMI/SCADA Path Traversal — Proficy HMI/SCADA - CIMPLICITY | 9.8 | - | 2014-01-25 |
| CVE-2014-0751 | GE Proficy HMI/SCADA Path Traversal — Proficy HMI/SCADA - CIMPLICITY | 9.8 | - | 2014-01-25 |
Vulnerabilities classified as CWE-22 (对路径名的限制不恰当(路径遍历)) represent 3427 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.