---
title: "CWE-49: Path Equivalence: 'filename/' (Trailing Slash)"
url: https://radicalnotion.ai/cwe/cwe-49
type: cwe
description: "The product accepts path input in the form of trailing slash ('filedir/') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-49: Path Equivalence: 'filename/' (Trailing Slash)

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 0
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product accepts path input in the form of trailing slash ('filedir/') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Operation | - |

## Applicable platforms

**Technologies:** Web Based (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Files or Directories, Modify Files or Directories | - |

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0253 | Overlaps infoleak |
| CVE-2001-0446 | Application server allows remote attackers to read source code for .jsp files by appending a / to the requested URL. |
| CVE-2004-0334 | Bypass Basic Authentication for files using trailing "/" |
| CVE-2001-0893 | Read sensitive files with trailing "/" |
| CVE-2001-0892 | Web server allows remote attackers to view sensitive files under the document root (such as .htpasswd) via a GET request with a trailing /. |
| CVE-2004-1814 | Directory traversal vulnerability in server allows remote attackers to read protected files via .. (dot dot) sequences in an HTTP request. |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-41](https://radicalnotion.ai/cwe/cwe-41) | Improper Resolution of Path Equivalence |
| Parent | [CWE-162](https://radicalnotion.ai/cwe/cwe-162) | Improper Neutralization of Trailing Special Elements |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | filedir/ (trailing slash, trailing /) | - | - |
| Software Fault Patterns | Path Traversal | SFP16 | - |

## Frequently asked questions

### What is CWE-49?

The product accepts path input in the form of trailing slash ('filedir/') without appropriate validation, which can lead to ambiguous path resolution and allow an attacker to traverse the file system to unintended locations or access arbitrary files.

### What are the consequences of CWE-49?

Exploiting CWE-49 can lead to: Read Files or Directories, Modify Files or Directories.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/49.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-49). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
