---
title: "CWE-792: Incomplete Filtering of One or More Instances of Special Elements"
url: https://radicalnotion.ai/cwe/cwe-792
type: cwe
description: "The product receives data from an upstream component, but does not completely filter one or more instances of 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-792: Incomplete Filtering of One or More Instances of Special Elements

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

## Description

The product receives data from an upstream component, but does not completely filter one or more instances of special elements before sending it to a downstream component.

Incomplete filtering of this nature involves either:

only filtering a single instance of a special element when more exist, or

not filtering all instances or all elements where multiple special elements exist.

## 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-2025-12758 | Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements | high | 8.7 | - | No | 2025-11-27 |
| CVE-2023-25608 | - | medium | 6.5 | - | No | 2023-09-13 |
| CVE-2022-22297 | - | medium | 5.5 | - | No | 2023-03-07 |
| CVE-2023-20057 | Cisco Email Security Appliance URL Filtering Bypass Vulnerability | medium | 5.3 | - | No | 2023-01-19 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-791](https://radicalnotion.ai/cwe/cwe-791) | Incomplete Filtering of Special Elements |
| Child | [CWE-793](https://radicalnotion.ai/cwe/cwe-793) | Only Filtering One Instance of a Special Element |
| Child | [CWE-794](https://radicalnotion.ai/cwe/cwe-794) | Incomplete Filtering of Multiple Instances of Special Elements |

## Frequently asked questions

### What is CWE-792?

The product receives data from an upstream component, but does not completely filter one or more instances of special elements before sending it to a downstream component.

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

4 recorded CVEs are attributed to CWE-792, including CVE-2025-12758, CVE-2023-25608 and CVE-2022-22297.

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

Exploiting CWE-792 can lead to: Unexpected State.

### Is CWE-792 actively exploited?

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

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

---

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