---
title: "CWE-234: Failure to Handle Missing Parameter"
url: https://radicalnotion.ai/cwe/cwe-234
type: cwe
description: "If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-234: Failure to Handle Missing Parameter

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

## Description

If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Confidentiality, Availability, Access Control | Execute Unauthorized Code or Commands, Gain Privileges or Assume Identity | There is the potential for arbitrary code execution with privileges of the vulnerable program if function parameter list is exhausted. |
| Availability | DoS: Crash, Exit, or Restart | Potentially a program could fail if it needs more arguments then are available. |

## Potential mitigations

### Build and Compilation

This issue can be simply combated with the use of proper build process.

### Implementation

Forward declare all functions. This is the recommended solution. Properly forward declaration of all used functions will result in a compiler error if too few arguments are sent to a function.

## Demonstrative examples

### Example 1

The following example demonstrates the weakness.

Bad code:

```c
foo_funct(one, two);

void foo_funct(int one, int two, int three) {
    printf("1) %d\n2) %d\n3) %d\n", one, two, three);
}
```

Bad code:

```c
void some_function(int foo, ...) {
    int a[3], i;
    va_list ap;
    va_start(ap, foo);
    for (i = 0; i < sizeof(a) / sizeof(int); i++) a[i] = va_arg(ap, int);
    va_end(ap);
}

int main(int argc, char *argv[]) {
    some_function(17, 42);
}
```

This can be exploited to disclose information with no work whatsoever. In fact, each time this function is run, it will print out the next 4 bytes on the stack after the two numbers sent to it.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2004-0276 | Server earlier allows remote attackers to cause a denial of service (crash) via an HTTP request with a sequence of "%" characters and a missing Host field. |
| CVE-2002-1488 | Chat client allows remote malicious IRC servers to cause a denial of service (crash) via a PART message with (1) a missing channel or (2) a channel that the user is not in. |
| CVE-2002-1169 | Proxy allows remote attackers to cause a denial of service (crash) via an HTTP request to helpout.exe with a missing HTTP version numbers. |
| CVE-2000-0521 | Web server allows disclosure of CGI source code via an HTTP request without the version number. |
| CVE-2001-0590 | Application server allows a remote attacker to read the source code to arbitrary 'jsp' files via a malformed URL request which does not end with an HTTP protocol specification. |
| CVE-2003-0239 | Chat software allows remote attackers to cause a denial of service via malformed GIF89a headers that do not contain a GCT (Global Color Table) or an LCT (Local Color Table) after an Image Descriptor. |
| CVE-2002-1023 | Server allows remote attackers to cause a denial of service (crash) via an HTTP GET request without a URI. |
| CVE-2002-1236 | CGI crashes when called without any arguments. |
| CVE-2003-0422 | CGI crashes when called without any arguments. |
| CVE-2002-1531 | Crash in HTTP request without a Content-Length field. |
| CVE-2002-1077 | Crash in HTTP request without a Content-Length field. |
| CVE-2002-1358 | Empty elements/strings in protocol test suite affect many SSH2 servers/clients. |
| CVE-2003-0477 | FTP server crashes in PORT command without an argument. |
| CVE-2002-0107 | Resultant infoleak in web server via GET requests without HTTP/1.0 version string. |
| CVE-2002-0596 | GET request with empty parameter leads to error message infoleak (path disclosure). |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2022-20933 | Cisco Meraki MX and Z3 Teleworker Gateway VPN Denial of Service Vulnerability | high | 8.6 | - | No | 2022-10-26 |
| CVE-2023-46316 | traceroute: improper command line parsing | medium | 5.5 | - | No | 2023-10-24 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-233](https://radicalnotion.ai/cwe/cwe-233) | Improper Handling of Parameters |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Missing Parameter Error | - | - |
| CLASP | Missing parameter | - | - |

## Frequently asked questions

### What is CWE-234?

If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well.

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

2 recorded CVEs are attributed to CWE-234, including CVE-2022-20933 and CVE-2023-46316.

### How do you prevent CWE-234?

This issue can be simply combated with the use of proper build process.

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

Exploiting CWE-234 can lead to: Execute Unauthorized Code or Commands, Gain Privileges or Assume Identity, DoS: Crash, Exit, or Restart.

### Is CWE-234 actively exploited?

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

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

---

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