---
title: "CWE-794: Incomplete Filtering of Multiple Instances of Special Elements"
url: https://radicalnotion.ai/cwe/cwe-794
type: cwe
description: "The product receives data from an upstream component, but it does not filter all instances of a special element 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-794: Incomplete Filtering of Multiple Instances of Special Elements

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

## Description

The product receives data from an upstream component, but it does not filter all instances of a special element before sending it to a downstream component.

Incomplete filtering of this nature may be applied to:

sequential elements (special elements that appear next to each other) or

non-sequential elements (special elements that appear multiple times in different locations).

## 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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2019-0002 | Junos OS: EX2300 and EX3400 series: Certain stateless firewall filter rules might not take effect | critical | 9.8 | - | No | 2019-01-15 |
| CVE-2026-21876 | OWASP CRS has multipart bypass using multiple content-type parts | critical | 9.3 | - | No | 2026-01-08 |
| CVE-2021-0203 | Junos OS: EX and QFX5K Series: Storm Control does not work as expected when Redundant Trunk Group is configured | high | 8.6 | - | No | 2021-01-15 |
| CVE-2021-0233 | Junos OS: ACX500 Series, ACX4000 Series: Denial of Service due to FFEB crash while processing high rate of specific packets. | high | 7.5 | - | No | 2021-04-22 |
| CVE-2020-1665 | Junos OS: MX series/EX9200 Series: IPv6 DDoS protection does not work as expected. | medium | 5.3 | - | No | 2020-10-16 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-792](https://radicalnotion.ai/cwe/cwe-792) | Incomplete Filtering of One or More Instances of Special Elements |

## Frequently asked questions

### What is CWE-794?

The product receives data from an upstream component, but it does not filter all instances of a special element before sending it to a downstream component.

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

5 recorded CVEs are attributed to CWE-794, including CVE-2019-0002, CVE-2026-21876 and CVE-2021-0203.

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

Exploiting CWE-794 can lead to: Unexpected State.

### Is CWE-794 actively exploited?

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

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

---

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