---
title: "CWE-21: DEPRECATED: Pathname Traversal and Equivalence Errors"
url: https://radicalnotion.ai/cwe/cwe-21
type: cwe
description: "This category has been deprecated. It was originally used for organizing weaknesses involving file names, which enabled access to files outside of a restricted directory (path traversal) or to perform operations on files that would otherwise be restricted (path equivalence). Consider using either the File Handling Issues category (CWE-1219) or the class Use of Incorrectly-Resolved Name or Reference (CWE-706)."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-21: DEPRECATED: Pathname Traversal and Equivalence Errors

- **Status:** Deprecated
- **CVEs with this as primary weakness:** 6
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

This category has been deprecated. It was originally used for organizing weaknesses involving file names, which enabled access to files outside of a restricted directory (path traversal) or to perform operations on files that would otherwise be restricted (path equivalence). Consider using either the File Handling Issues category (CWE-1219) or the class Use of Incorrectly-Resolved Name or Reference (CWE-706).

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2016-1505 | Radicale is vulnerable to directory traversal on Windows Filesystem Storage Backend component | critical | 10.0 | - | No | 2016-02-03 |
| CVE-2016-15017 | fabarea media\_upload UploadFileService.php getUploadedFileList pathname traversal | critical | 9.8 | - | No | 2023-01-10 |
| CVE-2015-10030 | SUKOHI Surpass Surpass.php pathname traversal | medium | 5.5 | - | No | 2023-01-08 |
| CVE-2019-11626 | - | medium | 5.3 | - | No | 2019-04-30 |
| CVE-2014-2232 | - | medium | 5.0 | - | No | 2014-12-01 |
| CVE-2024-7738 | yzane vscode-markdown-pdf Markdown File pathname traversal | medium | 4.8 | - | No | 2024-08-13 |

## Frequently asked questions

### What is CWE-21?

This category has been deprecated. It was originally used for organizing weaknesses involving file names, which enabled access to files outside of a restricted directory (path traversal) or to perform operations on files that would otherwise be restricted (path equivalence). Consider using either the File Handling Issues category (CWE-1219) or the class Use of Incorrectly-Resolved Name or Reference (CWE-706).

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

6 recorded CVEs are attributed to CWE-21, including CVE-2016-1505, CVE-2016-15017 and CVE-2015-10030.

### Is CWE-21 actively exploited?

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

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

---

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