CWE•Base•Draft•20 recent CVEs
CWE-23Relative Path Traversal
Description
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Common consequences
- Integrity,Confidentiality,Availability→Execute Unauthorized Code or CommandsThe attacker may be able to create or overwrite critical files that are used to execute code, such as programs or libraries.
- Integrity→Modify Files or DirectoriesThe 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, appe
- Confidentiality→Read Files or DirectoriesThe attacker may be able read the contents of unexpected files and expose sensitive data by traversing the file system to access files or directories that are outside of the restricted directory. If the targeted file is used for a security
- Availability→DoS: Crash, Exit, or RestartThe 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 authenti
Potential mitigations
- Implementation[object Object]
- Implementation[object Object]
- 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].
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-486815.92026-06-04CVE-2026-54228.12026-06-02CVE-2026-100744.92026-05-29CVE-2026-100737.52026-05-29CVE-2026-83262026-05-29CVE-2025-412807.82026-05-29CVE-2025-412717.52026-05-29CVE-2025-412689.12026-05-29CVE-2025-489776.52026-05-28CVE-2026-83617.52026-05-27CVE-2026-481268.22026-05-26CVE-2026-81347.22026-05-21CVE-2026-349266.72026-05-21CVE-2026-237342026-05-20CVE-2026-80737.52026-05-19CVE-2026-419489.42026-05-18CVE-2026-416125.52026-05-12CVE-2026-415519.12026-05-12CVE-2026-82092026-05-09CVE-2026-292018.62026-05-08