---
title: "CWE-35: Path Traversal: '.../...//'"
url: https://radicalnotion.ai/cwe/cwe-35
type: cwe
description: "The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location that is outside of that directory."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-35: Path Traversal: '.../...//'

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

## Description

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location that is outside of that directory.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality, Integrity | Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism | Not properly neutralizing '.../...//' (doubled triple dot slash) allows attackers to traverse the file system to access files or directories that are outside of the restricted directory. |

## Potential mitigations

### Implementation (Input Validation)

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.

When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

When validating filenames, use stringent allowlists that limit the character set to be used. If feasible, only allow a single "." character in the filename to avoid weaknesses such as CWE-23, and exclude directory separators such as "/" to avoid CWE-36. Use a list of allowable file extensions, which will help to avoid CWE-434.

Do not rely exclusively on a filtering mechanism that removes potentially dangerous characters. This is equivalent to a denylist, which may be incomplete (CWE-184). For example, filtering "/" is insufficient protection if the filesystem also supports the use of "\\" as a directory separator. Another possible error could occur when the filtering is applied in a way that still produces dangerous data (CWE-182). For example, the ".../...//" manipulation is useful for bypassing some path traversal protection schemes. If "../" sequences are removed from the ".../...//" string in a sequential fashion (as some regular expression engines and other algorithms operate) the string can collapse into the unsafe "../" value (CWE-182). Removing the first "../" yields "....//" and the second removal yields "../".

Effectiveness: High

### Implementation (Input Validation)

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.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

## Demonstrative examples

### Example 1

Suppose the product serves files from a specific "public" directory -- /home/product/public/ -- and has an algorithm that attempts to protect against common path traversal attacks. The algorithm works by sequentially scanning through a requested filename and removes each occurrence of "../" that it encounters, then appending the filename to the public directory.

Attack code:

```
../secret.dat
```

Result code:

```
/home/product/public/secret.dat
```

Attack code:

```
.../...//secret.dat
```

Result code:

```
....//secret.dat
```

Result code:

```
../secret.dat
```

Result code:

```
/home/product/public/../secret.dat
```

Good code:

```other
The algorithm could be changed to use a built-in path canonicalization function that effectively removes "../" sequences, removes symbolic links, etc., such as realpath() in C. An alternate approach might be to run a loop that continues to remove "../" sequences from successive outputs until all suspect sequences are removed. However, relying solely on such a filter may be risky, since there may be sequences or characters that the filter is not covering for all environments.
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2005-2169 | Chain: ".../...//" bypasses protection mechanism using regexp's that remove "../" resulting in collapse into an unsafe value "../" (CWE-182) and resultant path traversal. |
| CVE-2005-0202 | ".../....///" bypasses regexp's that remove "./" and "../" |

## Real CVEs with this weakness (sample of 12 of 201)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-8088 | Path traversal vulnerability in WinRAR | high | 8.4 | - | Yes | 2025-08-08 |
| CVE-2025-24786 | Path traversal opening Sqlite3 database in WhoDB | critical | 10.0 | - | No | 2025-02-06 |
| CVE-2026-59115 | Microsoft Entra Provisioning Service Elevation of Privilege Vulnerability | critical | 9.9 | - | No | 2026-08-06 |
| CVE-2026-45495 | Microsoft Edge (Chromium-based) Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2026-05-18 |
| CVE-2025-41723 | Sauter: Directory Traversal in importFile SOAP Method | critical | 9.8 | - | No | 2025-10-22 |
| CVE-2025-42937 | Directory Traversal vulnerability in SAP Print Service | critical | 9.8 | - | No | 2025-10-14 |
| CVE-2025-49295 | WordPress MediClinic theme \<= 2.1 - Local File Inclusion Vulnerability | critical | 9.8 | - | No | 2025-06-09 |
| CVE-2025-49296 | WordPress GrandPrix theme \<= 1.6 - Local File Inclusion Vulnerability | critical | 9.8 | - | No | 2025-06-09 |
| CVE-2025-49297 | WordPress Grill and Chow theme \<= 1.6 - Local File Inclusion Vulnerability | critical | 9.8 | - | No | 2025-06-09 |
| CVE-2024-39171 | - | critical | 9.8 | - | No | 2024-07-09 |
| CVE-2024-2863 | Path traversal via file upload on LG LED Assistant | critical | 9.8 | - | No | 2024-03-25 |
| CVE-2018-3744 | Path Traversal in html-pages | critical | 9.8 | - | No | 2018-05-29 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-23](https://radicalnotion.ai/cwe/cwe-23) | Relative Path Traversal |
| Related | [CWE-182](https://radicalnotion.ai/cwe/cwe-182) | Collapse of Data into Unsafe Value |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | '.../...//' | - | - |
| Software Fault Patterns | Path Traversal | SFP16 | - |

## Frequently asked questions

### What is CWE-35?

The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location that is outside of that directory.

### What CVEs are caused by CWE-35?

201 recorded CVEs are attributed to CWE-35, including CVE-2025-8088, CVE-2025-24786 and CVE-2026-59115. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-35?

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.

### How is CWE-35 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

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

Exploiting CWE-35 can lead to: Read Files or Directories, Modify Files or Directories, Bypass Protection Mechanism.

### Is CWE-35 actively exploited?

Yes. 1 CWE-35 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 201 recorded CVEs.

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

---

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