---
title: "CWE-232: Improper Handling of Undefined Values"
url: https://radicalnotion.ai/cwe/cwe-232
type: cwe
description: "The product does not handle or incorrectly handles when a value is not defined or supported for the associated parameter, field, or argument name."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-232: Improper Handling of Undefined Values

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

## Description

The product does not handle or incorrectly handles when a value is not defined or supported for the associated parameter, field, or argument name.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Unexpected State | - |

## Demonstrative examples

### Example 1

In this example, an address parameter is read and trimmed of whitespace.

Bad code:

```java
String address = request.getParameter("address");
address = address.trim();
String updateString = "UPDATE shippingInfo SET address='?' WHERE email='cwe@example.com'";
emailAddress = con.prepareStatement(updateString);
emailAddress.setString(1, address);
```

If the value of the address parameter is null (undefined), the servlet will throw a NullPointerException when the trim() is attempted.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2000-1003 | Client crash when server returns unknown driver type. |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-92088 | - | high | 8.6 | - | No | 2026-10-13 |
| CVE-2025-20192 | Cisco IOS XE Software Internet Key Exchange Version 1 Denial of Service Vulnerability | high | 7.7 | - | No | 2025-05-07 |
| CVE-2025-40775 | DNS message with invalid TSIG causes an assertion failure | high | 7.5 | - | No | 2025-05-21 |
| CVE-2023-39915 | Crashes on parsing certain invalid RPKI objects | high | 7.5 | - | No | 2023-09-13 |
| CVE-2023-39914 | BER/CER/DER decoder panics on invalid input | high | 7.5 | - | No | 2023-09-13 |
| CVE-2023-2968 | Undefined variable usage in npm package "proxy" leads to remote denial of service | high | 7.5 | - | No | 2023-05-30 |
| CVE-2025-20314 | Cisco IOS XE Software Secure Boot Bypass Vulnerabilities | medium | 6.7 | - | No | 2025-09-24 |
| CVE-2023-36848 | Junos OS: MX Series: The FPC will crash on receiving a malformed CFM packet | medium | 6.5 | - | No | 2023-07-14 |
| CVE-2022-22213 | Junos OS and Junos OS Evolved: Denial of Service (DoS) vulnerability in RPD upon receipt of specific BGP update | medium | 5.9 | - | No | 2022-07-20 |
| CVE-2021-34705 | Cisco IOS and IOS XE Software FXO Interface Destination Pattern Bypass Vulnerability | medium | 5.3 | - | No | 2021-09-23 |
| CVE-2021-3718 | - | medium | 4.6 | - | No | 2021-11-12 |

## Related weaknesses

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

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Undefined Value Error | - | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Do not catch NullPointerException or any of its ancestors | ERR08-J | - |

## Frequently asked questions

### What is CWE-232?

The product does not handle or incorrectly handles when a value is not defined or supported for the associated parameter, field, or argument name.

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

11 recorded CVEs are attributed to CWE-232, including CVE-2026-92088, CVE-2025-20192 and CVE-2025-40775.

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

Exploiting CWE-232 can lead to: Unexpected State.

### Is CWE-232 actively exploited?

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

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

---

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