BaseDraft

CWE-23Relative Path Traversal

Category: other

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· 4

  • Integrity / Confidentiality / Availability — Execute Unauthorized Code or Commands
    The 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 Directories
    The 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, appending a new account at the end of a password file may allow an attacker to bypass authentication.
  • Confidentiality — Read Files or Directories
    The 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 mechanism, then the attacker may be able to bypass that mechanism. For example, by reading a password file, the attacker could conduct brute force password guessing attacks in order to break into an account on the system.
  • Availability — DoS: Crash, Exit, or Restart
    The 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 authentication, it has the potential to lockout every user of the product.

Potential mitigations· 3

  • [Implementation]
  • [Implementation]
  • [Operation]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 [REF-1481].

Related CAPEC attack patterns· 2

CAPEC-139CAPEC-76

References

  1. https://cwe.mitre.org/data/definitions/23.html

Exploits (incoming)2

TypeTargetConfidenceTier
AttackPatternManipulating Web Input to File System Callscapec-76100%live
AttackPatternRelative Path Traversalcapec-139100%live

(incoming)54

TypeTargetConfidenceTier
VulnerabilityCVE-2025-1588cve-2025-15880%live
VulnerabilityCVE-2025-1599cve-2025-15990%live
VulnerabilityCVE-2025-20059cve-2025-200590%live
VulnerabilityCVE-2025-2007cve-2025-20070%live
VulnerabilityCVE-2025-23011cve-2025-230110%live
VulnerabilityCVE-2025-23360cve-2025-233600%live
VulnerabilityCVE-2025-23410cve-2025-234100%live
VulnerabilityCVE-2025-26645cve-2025-266450%live
VulnerabilityCVE-2025-30159cve-2025-301590%live
VulnerabilityCVE-2025-31493cve-2025-314930%live
VulnerabilityCVE-2025-32017cve-2025-320170%live
VulnerabilityCVE-2025-32409cve-2025-324090%live
VulnerabilityCVE-2025-33112cve-2025-331120%live
VulnerabilityCVE-2025-3365cve-2025-33650%live
VulnerabilityCVE-2025-34510cve-2025-345100%live
VulnerabilityCVE-2025-46433cve-2025-464330%live
VulnerabilityCVE-2025-47445cve-2025-474450%live
VulnerabilityCVE-2025-48817cve-2025-488170%live
VulnerabilityCVE-2025-52207cve-2025-522070%live
VulnerabilityCVE-2025-53082cve-2025-530820%live
VulnerabilityCVE-2025-54317cve-2025-543170%live
VulnerabilityCVE-2025-54531cve-2025-545310%live
VulnerabilityCVE-2025-55115cve-2025-551150%live
VulnerabilityCVE-2025-55747cve-2025-557470%live
VulnerabilityCVE-2025-62498cve-2025-624980%live
VulnerabilityCVE-2025-62878cve-2025-628780%live
VulnerabilityFortinet FortiWeb Path Traversal Vulnerabilitycve-2025-644460%live
VulnerabilityCVE-2025-68472cve-2025-684720%live
VulnerabilityCVE-2025-7619cve-2025-76190%live
VulnerabilityCVE-2026-21659cve-2026-216590%live

Showing top 30 of 54 by confidence. Click any target to see the full neighbourhood.

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Path Traversal: '/../filedir'
CWE
Path Traversal: '../filedir'
CWE
Path Traversal: '/dir/../filename'
CWE
Path Traversal: 'dir/../../filename'
CWE
Path Traversal: '..\filedir'
CWE
Path Traversal: '\dir\..\filename'
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.