Skip to main content

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
All KEV statistics→
  • 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 patterns
CAPEC-76Manipulating Web Input to File System CallsDetailed · Severity Very High · Likelihood High
CAPEC-139Relative Path TraversalDetailed · Severity High · Likelihood High

CWE-23 Vulnerabilities

8 CVEs
CVECVSS
CVE-2026-76519KEV
Cisco Secure Email Gateway Arbitrary File Write Vulnerability
9.8
CVE-2026-34926KEV
Trend Micro Apex One (On-Premise) Directory Traversal Vulnerability
6.7
CVE-2024-27199KEV
JetBrains TeamCity Relative Path Traversal Vulnerability
7.3
CVE-2025-64446KEV
Fortinet FortiWeb Path Traversal Vulnerability
9.4
CVE-2020-5410KEV
Directory Traversal with spring-cloud-config-server
7.5
CVE-2021-22017KEV
VMware vCenter Server Improper Access Control
5.3
CVE-2026-41948
Dify v1.14.1 Path Traversal via Plugin Daemon Internal API Access
9.4
CVE-2026-23734
XWiki Platform: Path traversal via resources parameter in ssx and jsx endpoints when using leading slash
9.3

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.