Relative Path Traversal (CWE-23)
CWE-23, Relative Path Traversal, is the MITRE CWE entry for weaknesses in which 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. The database tracks 8 CVE records mapped to CWE-23, and 6 of them are in the CISA Known Exploited Vulnerabilities catalog.
Updated
About CWE-23
MITRE lists these common consequences: Execute Unauthorized Code or Commands, Modify Files or Directories, Read Files or Directories, DoS: Crash, Exit, or Restart, affecting integrity, confidentiality, availability.
- MITRE name
- Relative Path Traversal
- Abstraction
- Base: abstract, but detailed enough to infer detection and prevention methods
- Status
- Draft
Also Known As
- Zip Slip
Mitigations
- Assume 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.
- Inputs 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.
- Use 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.
Detection
MITRE lists these detection methods: Automated Static Analysis (high).
CWE-23 in the KEV Catalog
as of 2026-11-16- 6 CISA KEV entries name Relative Path Traversal (CWE-23) in their CVE record, tied for 41st among the 195 weaknesses named in the catalog.
- CISA added 0 CWE-23 entries to the KEV catalog in 2024, 1 in 2025, and 3 so far in 2026.
- VMware has the most CWE-23 entries in the CISA KEV catalog (2).
Related Attack Patterns
2 CAPEC patternsCAPEC-76Manipulating Web Input to File System CallsDetailed · Severity Very High · Likelihood High
Loading…
CAPEC-139Relative Path TraversalDetailed · Severity High · Likelihood High
Loading…
CWE-23 Vulnerabilities
8 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2026-76519KEV Cisco Secure Email Gateway Arbitrary File Write Vulnerability | Cisco Secure Email Gateway Arbitrary File Write Vulnerability | Cisco | 9.8 | 6.2% | KEV | 2026-10-14 |
| CVE-2026-34926KEV Trend Micro Apex One (On-Premise) Directory Traversal Vulnerability | Trend Micro Apex One (On-Premise) Directory Traversal Vulnerability | Trend Micro, Inc. | 6.7 | 13.4% | KEV | 2026-05-21 |
| CVE-2024-27199KEV JetBrains TeamCity Relative Path Traversal Vulnerability | JetBrains TeamCity Relative Path Traversal Vulnerability | JetBrains | 7.3 | 99.991% | KEV | 2024-03-04 |
| CVE-2025-64446KEV Fortinet FortiWeb Path Traversal Vulnerability | Fortinet FortiWeb Path Traversal Vulnerability | Fortinet | 9.4 | 91.1% | KEV | 2025-11-14 |
| CVE-2020-5410KEV Directory Traversal with spring-cloud-config-server | Directory Traversal with spring-cloud-config-server | Spring by VMware | 7.5 | 95.6% | KEV | 2020-06-02 |
| CVE-2021-22017KEV VMware vCenter Server Improper Access Control | VMware vCenter Server Improper Access Control | - | 5.3 | 49.2% | KEV | 2021-09-23 |
| CVE-2026-41948 Dify v1.14.1 Path Traversal via Plugin Daemon Internal API Access | Dify v1.14.1 Path Traversal via Plugin Daemon Internal API Access | langgenius | 9.4 | 22.7% | 2026-05-18 | |
| CVE-2026-23734 XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash | XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash | xwiki | 9.3 | 18.5% | 2026-05-20 |
Frequently Asked Questions
What is CWE-23?→
CWE-23 (Relative Path Traversal) is a MITRE CWE entry. 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.
How many exploited vulnerabilities are classified as CWE-23?→
This database lists 8 CVE records mapped to CWE-23 by their CVE Numbering Authority. 6 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 1 to known ransomware campaigns. Examples include CVE-2026-76519, CVE-2026-34926, CVE-2024-27199.
Weakness description, consequences, and mitigations from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.