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

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 2
- **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 dot ('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 | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism | - |

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2000-1114 | Source code disclosure using trailing dot |
| CVE-2002-1986 | Source code disclosure using trailing dot |
| CVE-2004-2213 | Source code disclosure using trailing dot (CWE-42) or trailing encoded space "%20" (CWE-46) |
| CVE-2005-3293 | Source code disclosure using trailing null (CWE-158) or trailing dot (CWE-42). |
| CVE-2004-0061 | Bypass directory access restrictions using trailing dot in URL |
| CVE-2000-1133 | Bypass directory access restrictions using trailing dot in URL |
| CVE-2001-1386 | Bypass check for ".lnk" extension using ".lnk." |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-52884 | Notepad++: CVE-2026-48800 Bypass | high | 7.8 | - | No | 2026-06-26 |
| CVE-2021-21682 | Improper handling of equivalent directory names on Windows in Jenkins | medium | 6.3 | - | No | 2021-10-06 |

## 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 |
| Child | [CWE-43](https://radicalnotion.ai/cwe/cwe-43) | Path Equivalence: 'filename....' (Multiple Trailing Dot) |

## Taxonomy mappings

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

## Frequently asked questions

### What is CWE-42?

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

2 recorded CVEs are attributed to CWE-42, including CVE-2026-52884 and CVE-2021-21682.

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

Exploiting CWE-42 can lead to: Bypass Protection Mechanism.

### Is CWE-42 actively exploited?

2 recorded CVEs are caused by CWE-42; none are currently in CISA's KEV catalog of actively exploited flaws.

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

---

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