---
title: "CWE-46: Path Equivalence: 'filename ' (Trailing Space)"
url: https://radicalnotion.ai/cwe/cwe-46
type: cwe
description: "The product accepts path input in the form of trailing space ('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-46: Path Equivalence: 'filename ' (Trailing Space)

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

## Description

The product accepts path input in the form of trailing space ('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 | - |

## 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-2001-0693 | Source disclosure via trailing encoded space "%20" |
| CVE-2001-0778 | Source disclosure via trailing encoded space "%20" |
| CVE-2001-1248 | Source disclosure via trailing encoded space "%20" |
| CVE-2004-0280 | Source disclosure via trailing encoded space "%20" |
| CVE-2004-2213 | Source code disclosure using trailing dot (CWE-42) or trailing encoded space "%20" (CWE-46) |
| CVE-2005-0622 | Source disclosure via trailing encoded space "%20" |
| CVE-2005-1656 | Source disclosure via trailing encoded space "%20" |
| CVE-2002-1603 | Source disclosure via trailing encoded space "%20" |
| CVE-2001-0054 | Multi-Factor Vulnerability (MFV). directory traversal and other issues in FTP server using Web encodings such as "%20"; certain manipulations have unusual side effects. |
| CVE-2002-1451 | Trailing space ("+" in query string) leads to source code disclosure. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-8801 | File Extension Restriction Bypass in MOVEit Transfer | critical | 9.8 | - | No | 2026-07-08 |

## Related attack patterns (CAPEC)

- [CAPEC-649](https://radicalnotion.ai/capec/capec-649): Adding a Space to a File Extension

## 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 |
| Can precede | [CWE-289](https://radicalnotion.ai/cwe/cwe-289) | Authentication Bypass by Alternate Name |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Trailing Space - 'filedir ' | - | - |
| Software Fault Patterns | Path Traversal | SFP16 | - |

## Frequently asked questions

### What is CWE-46?

The product accepts path input in the form of trailing space ('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 CVEs are caused by CWE-46?

1 recorded CVE is attributed to CWE-46: CVE-2026-8801.

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

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

### Is CWE-46 actively exploited?

1 recorded CVE is caused by CWE-46; it is not currently in CISA's KEV catalog of actively exploited flaws.

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

---

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