---
title: "CWE-184: Incomplete List of Disallowed Inputs"
url: https://radicalnotion.ai/cwe/cwe-184
type: cwe
description: "The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-184: Incomplete List of Disallowed Inputs

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 228
- **Of those, in CISA KEV:** 1
- **New in 2026:** 168
- **CWE catalog version:** 4.21

## Description

The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

## Alternate terms

- **Denylist / Deny List:** This is used by CWE and CAPEC instead of other commonly-used terms. Its counterpart is allowlist.
- **Blocklist / Block List:** This is often used by security tools such as firewalls, email or web gateways, proxies, etc.
- **Blacklist / Black List:** This term is frequently used, but usage has been declining as organizations have started to adopt other terms.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | Developers often try to protect their products against malicious input by checking against lists of known bad inputs, such as special characters that can invoke new commands. However, such lists often only address the most well-known bad inputs. As a quick fix, developers might rely on these lists instead of addressing the root cause of the issue. See \[REF-141\]. |
| Architecture and Design | The design might rely solely on detection of malicious inputs as a protection mechanism. |

## Applicable platforms

**Languages:** Python (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism | Attackers may be able to find other malicious inputs that were not expected by the developer, allowing them to bypass the intended protection mechanism. |

## Potential mitigations

### Implementation (Input Validation)

Do not rely exclusively on detecting disallowed inputs. There are too many variants to encode a character, especially when different environments are used, so there is a high likelihood of missing some variants. Only use detection of disallowed inputs as a mechanism for detecting suspicious activity. Ensure that you are using other protection mechanisms that only identify "good" input - such as lists of allowed inputs - and ensure that you are properly encoding your outputs.

## Detection methods

### Black Box

Exploitation of a vulnerability with commonly-used manipulations might fail, but minor variations might succeed.

## Demonstrative examples

### Example 1

The following code attempts to stop XSS attacks by removing all occurrences of "script" in an input string.

Bad code:

```java
public String removeScriptTags(String input, String mask) {
    return input.replaceAll("script", mask);
}
```

Because the code only checks for the lower-case "script" string, it can be easily defeated with upper-case script tags.

### Example 2

This example takes user input, passes it through an encoding scheme, then lists the contents of the user's home directory based on the user name.

Bad code:

```perl
sub GetUntrustedInput {
    return($ARGV[0]);
}

sub encode {
    my($str) = @_;
    $str =~ s/\&/\&amp;/gs;
    $str =~ s/\"/\&quot;/gs;
    $str =~ s/\'/\&apos;/gs;
    $str =~ s/\</\&lt;/gs;
    $str =~ s/\>/\&gt;/gs;
    return($str);
}

sub doit {
    my $uname = encode(GetUntrustedInput("username"));
    print "<b>Welcome, $uname!</b><p>\n";
    system("cd /home/$uname; /bin/ls -l");
}
```

Attack code:

```
' pwd
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-6091 | Chain: AI agent platform does not restrict pathnames containing internal "/./" sequences (CWE-55), leading to an incomplete denylist (CWE-184) that does not prevent OS command injection (CWE-78) |
| CVE-2024-4315 | Chain: API for text generation using Large Language Models (LLMs) does not include the "\\" Windows folder separator in its denylist (CWE-184) when attempting to prevent Local File Inclusion via path traversal (CWE-22), allowing deletion of arbitrary files on Windows systems. |
| CVE-2024-44335 | Chain: filter only checks for some shell-injection characters (CWE-184), enabling OS command injection (CWE-78) |
| CVE-2008-2309 | product uses a denylist to identify potentially dangerous content, allowing attacker to bypass a warning |
| CVE-2005-2782 | PHP remote file inclusion in web application that filters "http" and "https" URLs, but not "ftp". |
| CVE-2004-0542 | Programming language does not filter certain shell metacharacters in Windows environment. |
| CVE-2004-0595 | XSS filter doesn't filter null characters before looking for dangerous tags, which are ignored by web browsers. Multiple Interpretation Error (MIE) and validate-before-cleanse. |
| CVE-2005-3287 | Web-based mail product doesn't restrict dangerous extensions such as ASPX on a web server, even though others are prohibited. |
| CVE-2004-2351 | Resultant XSS when only \<script\> and \<style\> are checked. |
| CVE-2005-2959 | Privileged program does not clear sensitive environment variables that are used by bash. Overlaps multiple interpretation error. |
| CVE-2005-1824 | SQL injection protection scheme does not quote the "\\" special character. |
| CVE-2005-2184 | Detection of risky filename extensions prevents users from automatically executing .EXE files, but .LNK is accepted, allowing resultant Windows symbolic link. |
| CVE-2007-1343 | Product uses list of protected variables, but accidentally omits one dangerous variable, allowing external modification |
| CVE-2007-5727 | Chain: incomplete denylist (CWE-184) only removes SCRIPT tags, enabling XSS (CWE-79) |
| CVE-2006-4308 | Chain: product only checks for use of "javascript:" tag (CWE-184), allowing XSS (CWE-79) using other tags |
| CVE-2007-3572 | Chain: OS command injection (CWE-78) enabled by using an unexpected character that is not explicitly disallowed (CWE-184) |
| CVE-2002-0661 | "\\" not in list of disallowed values for web server, allowing path traversal attacks when the server is run on Windows and other OSes. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-5217 | Incomplete Input Validation in GlideExpression Script | critical | 9.2 | - | Yes | 2024-07-10 |
| CVE-2026-106218 | - | critical | 10.0 | - | No | 2026-10-06 |
| CVE-2026-87985 | - | critical | 10.0 | - | No | 2026-09-11 |
| CVE-2026-79696 | Remote Code Execution in Google ADK for Python via Incomplete Standard Library Denylist | critical | 10.0 | - | No | 2026-09-09 |
| CVE-2026-17150 | Multiple Vulnerabilities in IBM API Connect | critical | 9.9 | - | No | 2026-11-07 |
| CVE-2026-57138 | PraisonAI codeMode sandbox escape via Function constructor | critical | 9.9 | - | No | 2026-09-15 |
| CVE-2026-65083 | NVIDIA OpenShell: NVIDIA OpenShell: sandbox provisioning API allows code execution via incomplete input filtering | critical | 9.9 | - | No | 2026-08-25 |
| CVE-2026-47392 | PraisonAI vulnerable to sandbox escape via \`print.\_\_self\_\_\` builtins module leak in \`execute\_code\` (subprocess mode) | critical | 9.9 | - | No | 2026-07-21 |
| CVE-2026-28363 | OpenClaw is vulnerable to validation bypass through GNU long-option abbreviations in allowlist mode | critical | 9.9 | - | No | 2026-02-27 |
| CVE-2026-13448 | Langflow is affected by remote code execution, denial of service, path traversal, and exposed credentials due to multiple unauthenticated and insufficiently authorized API endpoints | critical | 9.8 | - | No | 2026-07-17 |
| CVE-2025-48732 | WWBN AVideo .htaccess sample incomplete blacklist vulnerability | critical | 9.8 | - | No | 2025-07-24 |
| CVE-2023-3374 | Privilege Escalation in Bookreen | critical | 9.8 | - | No | 2023-09-05 |

## Related attack patterns (CAPEC)

- [CAPEC-120](https://radicalnotion.ai/capec/capec-120): Double Encoding
- [CAPEC-15](https://radicalnotion.ai/capec/capec-15): Command Delimiters
- [CAPEC-182](https://radicalnotion.ai/capec/capec-182): Flash Injection
- [CAPEC-3](https://radicalnotion.ai/capec/capec-3): Using Leading 'Ghost' Character Sequences to Bypass Input Filters
- [CAPEC-43](https://radicalnotion.ai/capec/capec-43): Exploiting Multiple Input Interpretation Layers
- [CAPEC-6](https://radicalnotion.ai/capec/capec-6): Argument Injection
- [CAPEC-71](https://radicalnotion.ai/capec/capec-71): Using Unicode Encoding to Bypass Validation Logic
- [CAPEC-73](https://radicalnotion.ai/capec/capec-73): User-Controlled Filename
- [CAPEC-85](https://radicalnotion.ai/capec/capec-85): AJAX Footprinting

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-693](https://radicalnotion.ai/cwe/cwe-693) | Protection Mechanism Failure |
| Parent | [CWE-1023](https://radicalnotion.ai/cwe/cwe-1023) | Incomplete Comparison with Missing Factors |
| Child | [CWE-692](https://radicalnotion.ai/cwe/cwe-692) | Incomplete Denylist to Cross-Site Scripting |
| Peer | [CWE-86](https://radicalnotion.ai/cwe/cwe-86) | Improper Neutralization of Invalid Characters in Identifiers in Web Pages |
| Peer | [CWE-625](https://radicalnotion.ai/cwe/cwe-625) | Permissive Regular Expression |
| Can precede | [CWE-78](https://radicalnotion.ai/cwe/cwe-78) | Improper Neutralization of Special Elements used in an OS Command |
| Can precede | [CWE-79](https://radicalnotion.ai/cwe/cwe-79) | Improper Neutralization of Input During Web Page Generation |
| Can precede | [CWE-98](https://radicalnotion.ai/cwe/cwe-98) | Improper Control of Filename for Include/Require Statement in PHP Program |
| Can precede | [CWE-434](https://radicalnotion.ai/cwe/cwe-434) | Unrestricted Upload of File with Dangerous Type |
| Related | [CWE-186](https://radicalnotion.ai/cwe/cwe-186) | Overly Restrictive Regular Expression |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Incomplete Blacklist | - | - |
| OpenSSF Secure Coding Guide for Python | Use Allow Lists Over Deny Lists | pyscg-0047 | - |

## Frequently asked questions

### What is CWE-184?

The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.

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

228 recorded CVEs are attributed to CWE-184, including CVE-2024-5217, CVE-2026-106218 and CVE-2026-87985. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### How do you prevent CWE-184?

Do not rely exclusively on detecting disallowed inputs. There are too many variants to encode a character, especially when different environments are used, so there is a high likelihood of missing some variants. Only use detection of disallowed inputs as a mechanism for detecting suspicious activity. Ensure that you are using other protection mechanisms that only identify "good" input - such as lists of allowed inputs - and ensure that you are properly encoding your outputs.

### How is CWE-184 detected?

Black Box: Exploitation of a vulnerability with commonly-used manipulations might fail, but minor variations might succeed.

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

Exploiting CWE-184 can lead to: Bypass Protection Mechanism.

### Is CWE-184 actively exploited?

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

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

---

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