cve.bz

CWE-26: Path Traversal: '/dir/../filename', published in 2023

Filter

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "/dir/../filename" sequences that can resolve to a location that is outside of that directory.

What the weakness is: CWE-26 at MITRE. All weaknesses

Ask an AI about CWE-26

Show the promptExplain CWE-26: Path Traversal: '/dir/../filename' and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/26.html and https://cve.bz/cve/cwe/26?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

  1. 7.8CVE-2023-50255deepin deepin-compressorEPSS 1.4%

    Deepin-Compressor is the default archive manager of Deepin Linux OS. Prior to 5.12.21, there's a path traversal vulnerability in deepin-compressor that can be exploited to achieve Remote Command Execution on the target system upon opening …

  2. 7.5CVE-2023-25802roxy-wiEPSS 1.0%

    Roxy-WI is a Web interface for managing Haproxy, Nginx, Apache, and Keepalived servers. Versions prior to 6.3.6.0 don't correctly neutralize `dir/../filename` sequences, such as `/etc/nginx/../passwd`, allowing an actor to gain information…