CWE-27: Path Traversal: 'dir/../../filename', published in 2021
Filter
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize multiple internal "../" sequences that can resolve to a location that is outside of that directory.
What the weakness is: CWE-27 at MITRE. All weaknesses
Ask an AI about CWE-27
Show the prompt
Explain CWE-27: Path Traversal: 'dir/../../filename' and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/27.html and https://cve.bz/cve/cwe/27?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 7.5CVE-2021-35027zyxel zywall vpn2s firmwareEPSS 2.0%
A directory traversal vulnerability in the web server of the Zyxel VPN2S firmware version 1.12 could allow a remote attacker to gain access to sensitive information.