CWEweakness
CWE-234 Failure to Handle Missing Parameter
High
Official page ↗
- Abstraction
- Variant
- Structure
- Simple
- Status
- Incomplete
- Likelihood of exploit
- High
- Languages
- Not Language-Specific
- CWE version
- 5.0
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.
Common consequences
• 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.
Observed examples
• 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).
Related
Observed example · CVE (15)
- CVE-2004-0276 The get_real_string function in Monkey HTTP Daemon (monkeyd) 0.8.1 and earlier allows remote attackers to cause a denial of service (crash)… vulnerability
- CVE-2003-0422 Apple QuickTime / Darwin Streaming Server before 4.1.3f allows remote attackers to cause a denial of service (crash) via a request to… vulnerability
- CVE-2003-0477 wzdftpd 0.1rc4 and earlier allows remote attackers to cause a denial of service (crash) via a PORT command without an argument. vulnerability
- CVE-2003-0239 icqateimg32.dll parsing/rendering library in Mirabilis ICQ Pro 2003a allows remote attackers to cause a denial of service via malformed… vulnerability
- CVE-2002-1488 The IRC component of Trillian 0.73 and 0.74 allows remote malicious IRC servers to cause a denial of service (crash) via a PART message… vulnerability
- CVE-2002-1531 The administrative web interface (STEMWADM) for SurfControl SuperScout Email Filter allows remote attackers to cause a denial of service… vulnerability
- CVE-2002-1358 Multiple SSH2 servers and clients do not properly handle lists with empty elements or strings, which may allow remote attackers to cause a… vulnerability
- CVE-2002-1236 The remote management web server for Linksys BEFSR41 EtherFast Cable/DSL Router before firmware 1.42.7 allows remote attackers to cause a… vulnerability
- CVE-2002-1169 IBM Web Traffic Express Caching Proxy Server 3.6 and 4.x before 4.0.1.26 allows remote attackers to cause a denial of service (crash) via… vulnerability
- CVE-2002-1023 BadBlue server allows remote attackers to cause a denial of service (crash) via an HTTP GET request without a URI. vulnerability
- CVE-2002-1077 IPSwitch IMail Web Calendaring service (iwebcal) allows remote attackers to cause a denial of service (crash) via an HTTP POST request… vulnerability
- CVE-2002-0596 WebTrends Reporting Center 4.0d allows remote attackers to determine the real path of the web server via a GET request to get_od_toc.pl… vulnerability
- CVE-2002-0107 Web administration interface in CacheFlow CacheOS 4.0.13 and earlier allows remote attackers to obtain sensitive information via a series… vulnerability
- CVE-2001-0590 Apache Software Foundation Tomcat Servlet prior to 3.2.2 allows a remote attacker to read the source code to arbitrary 'jsp' files via a… vulnerability
- CVE-2000-0521 Savant web server allows remote attackers to read source code of CGI scripts via a GET request that does not include the HTTP version… vulnerability
Child of · CWE (1)
- CWE-233 Improper Handling of Parameters weakness
Referenced by CVE · weakness (2)
- CVE-2023-46316 In buc Traceroute 2.0.12 through 2.1.2 before 2.1.3, the wrapper scripts do not properly parse command lines. vulnerability
- CVE-2022-20933 A vulnerability in the Cisco AnyConnect VPN server of Cisco Meraki MX and Cisco Meraki Z3 Teleworker Gateway devices could allow an… vulnerability
Referenced by OWASP · mapped cwe (1)
- A10:2025 Mishandling of Exceptional Conditions Top 10 2025