---
title: "CWE-790: Improper Filtering of Special Elements"
url: https://radicalnotion.ai/cwe/cwe-790
type: cwe
description: "The product receives data from an upstream component, but it does not filter or incorrectly filters special elements before sending it to a downstream component."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-790: Improper Filtering of Special Elements

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

## Description

The product receives data from an upstream component, but it does not filter or incorrectly filters special elements before sending it to a downstream component.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Unexpected State | - |

## Demonstrative examples

### Example 1

The following code takes untrusted input and uses a regular expression to filter "../" from the input. It then appends this result to the /home/user/ directory and attempts to read the file in the final resulting path.

Bad code:

```perl
my $Username = GetUntrustedInput();
$Username =~ s/\.\.\///;
my $filename = "/home/user/" . $Username;
ReadAndSendFile($filename);
```

Attack code:

```
../../../etc/passwd
```

Result code:

```
../../etc/passwd
```

Result code:

```
/home/user/../../etc/passwd
```

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-22578 | Sequalize - Default support for “raw attributes” when using parentheses | critical | 10.0 | - | No | 2023-02-16 |
| CVE-2021-43802 | Admin privilege escalation and arbitrary code execution via malicious \*.etherpad imports | critical | 9.9 | - | No | 2021-12-09 |
| CVE-2023-45239 | - | critical | 9.8 | - | No | 2023-10-06 |
| CVE-2024-42416 | Multiple issues in ctl(4) CAM Target Layer | high | 8.8 | - | No | 2024-09-05 |
| CVE-2024-31616 | - | high | 8.8 | - | No | 2024-04-23 |
| CVE-2026-11331 | Potential wildcard CNAME RPZ policy bypass | high | 7.5 | - | No | 2026-07-22 |
| CVE-2026-2328 | Backend Access Due to Insufficient Input Validation | high | 7.5 | - | No | 2026-03-30 |
| CVE-2026-9658 | Plack::Middleware::Security::Common versions before 0.13.1 for Perl did not block header injections in request paths | high | 7.3 | - | No | 2026-05-28 |
| CVE-2025-27260 | Ericsson Indoor Connect 8855 - Improper Filtering of Special Elements Vulnerability | high | 7.2 | - | No | 2026-03-25 |
| CVE-2024-47984 | - | medium | 6.5 | - | No | 2024-12-13 |
| CVE-2025-0431 | Enterprise Protection Backslash URL Rewrite Bypass | medium | 5.8 | - | No | 2025-03-19 |
| CVE-2024-6540 | Information exlosure in external interface | medium | 5.7 | - | No | 2024-07-15 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-138](https://radicalnotion.ai/cwe/cwe-138) | Improper Neutralization of Special Elements |
| Child | [CWE-182](https://radicalnotion.ai/cwe/cwe-182) | Collapse of Data into Unsafe Value |
| Child | [CWE-791](https://radicalnotion.ai/cwe/cwe-791) | Incomplete Filtering of Special Elements |

## Frequently asked questions

### What is CWE-790?

The product receives data from an upstream component, but it does not filter or incorrectly filters special elements before sending it to a downstream component.

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

14 recorded CVEs are attributed to CWE-790, including CVE-2023-22578, CVE-2021-43802 and CVE-2023-45239.

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

Exploiting CWE-790 can lead to: Unexpected State.

### Is CWE-790 actively exploited?

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

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

---

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