---
title: "CWE-155: Improper Neutralization of Wildcards or Matching Symbols"
url: https://radicalnotion.ai/cwe/cwe-155
type: cwe
description: "The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent 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-155: Improper Neutralization of Wildcards or Matching Symbols

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

## Description

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent to a downstream component.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Unexpected State, Varies by Context | As data is parsed, an injected element may cause the process to take unexpected actions. |

## Potential mitigations

### Mitigation

Developers should anticipate that wildcard or matching elements will be injected/removed/manipulated in the input vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only valid, expected and appropriate input is processed by the system.

### Implementation (Input Validation)

Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

### Implementation (Output Encoding)

While it is risky to use dynamically-generated query strings, code, or commands that mix control and data together, sometimes it may be unavoidable. Properly quote arguments and escape any special characters within those arguments. The most conservative approach is to escape or filter all characters that do not pass an extremely strict allowlist (such as everything that is not alphanumeric or white space). If some special characters are still needed, such as white space, wrap each argument in quotes after the escaping/filtering step. Be careful of argument injection (CWE-88).

### Implementation (Input Validation)

Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2002-0433 | List files in web server using "\*.ext" |
| CVE-2002-1010 | Bypass file restrictions using wildcard character. |
| CVE-2001-0334 | Wildcards generate long string on expansion. |
| CVE-2004-1962 | SQL injection involving "/\*\*/" sequences. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-130747 | Grav before 1.7.53.7 and 2.x before 2.2.18 Authentication Bypass via First-Run Setup | critical | 9.2 | - | No | 2026-11-18 |
| CVE-2023-20860 | Spring Framework is vulnerable to security bypass via mvcRequestMatcher pattern mismatch | critical | 9.1 | - | No | 2023-03-27 |
| CVE-2025-11757 | Improper Neutralization of Wildcards or Matching Symbols in CloudEdge Online Cameras and App | high | 8.7 | - | No | 2025-10-21 |
| CVE-2024-47791 | Ruijie Reyee OS Improper Neutralization of Wildcards or Matching Symbols | high | 8.7 | - | No | 2024-12-06 |
| CVE-2025-4232 | GlobalProtect: Authenticated Code Injection Through Wildcard on macOS | high | 8.5 | - | No | 2025-06-12 |
| CVE-2026-87016 | Open WebUI: Sign-in as another user via wildcard characters in the OAuth subject claim on SQLite | high | 8.1 | - | No | 2026-09-09 |
| CVE-2022-21646 | Lookup operations do not take into account wildcards in SpiceDB | high | 8.1 | - | No | 2022-01-11 |
| CVE-2020-1772 | Information Disclosure | high | 7.5 | - | No | 2020-03-27 |
| CVE-2025-27515 | Laravel has a File Validation Bypass | medium | 6.9 | - | No | 2025-03-05 |
| CVE-2025-0681 | New Rock Technologies Cloud Connected Devices Improper Neutralization of Wildcards or Matching Symbols | medium | 6.9 | - | No | 2025-01-30 |
| CVE-2025-0106 | Expedition: Wildcard Expansion Vulnerability | medium | 6.9 | - | No | 2025-01-11 |
| CVE-2024-8688 | PAN-OS: Arbitrary File Read Vulnerability in the Command Line Interface (CLI) | medium | 6.7 | - | No | 2024-09-11 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-138](https://radicalnotion.ai/cwe/cwe-138) | Improper Neutralization of Special Elements |
| Child | [CWE-56](https://radicalnotion.ai/cwe/cwe-56) | Path Equivalence: 'filedir\*' (Wildcard) |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Wildcard or Matching Element | - | - |
| Software Fault Patterns | Tainted input to command | SFP24 | - |

## Frequently asked questions

### What is CWE-155?

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as wildcards or matching symbols when they are sent to a downstream component.

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

18 recorded CVEs are attributed to CWE-155, including CVE-2026-130747, CVE-2023-20860 and CVE-2025-11757.

### How do you prevent CWE-155?

Developers should anticipate that wildcard or matching elements will be injected/removed/manipulated in the input vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only valid, expected and appropriate input is processed by the system.

### How is CWE-155 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

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

Exploiting CWE-155 can lead to: Unexpected State, Varies by Context.

### Is CWE-155 actively exploited?

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

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

---

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