---
title: "CWE-475: Undefined Behavior for Input to API"
url: https://radicalnotion.ai/cwe/cwe-475
type: cwe
description: "The behavior of this function is undefined unless its control parameter is set to a specific value."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-475: Undefined Behavior for Input to API

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 15
- **Of those, in CISA KEV:** 0
- **New in 2026:** 5
- **CWE catalog version:** 4.21

## Description

The behavior of this function is undefined unless its control parameter is set to a specific value.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Quality Degradation, Varies by Context | - |

## 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

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-47865 | Trend Micro Apex Central widget getObjWGFServiceApiByApiName Local File Inclusion Remote Code Execution Vulnerability | critical | 9.8 | - | No | 2025-06-17 |
| CVE-2026-19311 | Missing Authorization in Execute Monitor API in OpenSearch Alerting Plugin | high | 8.6 | - | No | 2026-08-12 |
| CVE-2026-42009 | Gnutls: gnutls: denial of service via dtls packet reordering vulnerability | high | 7.5 | - | No | 2026-05-18 |
| CVE-2025-47866 | Trend Micro Apex Central modTMCM Unrestricted File Upload Vulnerability | high | 7.5 | - | No | 2025-06-17 |
| CVE-2024-10569 | Zip Bomb Vulnerability in gradio-app/gradio | high | 7.5 | - | No | 2025-03-20 |
| CVE-2024-20380 | ClamAV HTML Parser Denial of Service Vulnerability | high | 7.5 | - | No | 2024-04-18 |
| CVE-2023-2253 | distribution catalog API endpoint can lead to OOM via malicious user input | high | 7.5 | - | No | 2023-06-06 |
| CVE-2020-7925 | Denial of Service when processing malformed Role names | high | 7.5 | - | No | 2020-11-23 |
| CVE-2023-4874 | Undefined Behavior for Input to API in Mutt | medium | 6.5 | - | No | 2023-09-09 |
| CVE-2023-4875 | Undefined Behavior for Input to API in Mutt | medium | 5.7 | - | No | 2023-09-09 |
| CVE-2026-89981 | arm64: Don't read GMID\_EL1 when MTE is disabled | medium | 5.5 | - | No | 2026-09-16 |
| CVE-2024-3099 | Denial of Service and Data Model Poisoning via URL Encoding in mlflow/mlflow | medium | 5.4 | - | No | 2024-06-06 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-573](https://radicalnotion.ai/cwe/cwe-573) | Improper Following of Specification by Caller |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Undefined Behavior | - | - |
| Software Fault Patterns | Glitch in computation | SFP1 | - |

## Frequently asked questions

### What is CWE-475?

The behavior of this function is undefined unless its control parameter is set to a specific value.

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

15 recorded CVEs are attributed to CWE-475, including CVE-2025-47865, CVE-2026-19311 and CVE-2026-42009.

### How is CWE-475 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-475?

Exploiting CWE-475 can lead to: Quality Degradation, Varies by Context.

### Is CWE-475 actively exploited?

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

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

---

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