CWEweakness
CWE-1287 Improper Validation of Specified Type of Input
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.
Common consequences
• Other: Varies by Context — When input does not comply with the expected type, attackers could trigger unexpected errors, cause incorrect actions to take place, or exploit latent vulnerabilities that would not be possible if the input conformed with the expected type.
Potential mitigations
• [Implementation] 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.
Observed examples
• CVE-2024-37032: Large language model (LLM) management tool does not
validate the format of a digest value (CWE-1287) from a
private, untrusted model registry, enabling relative
path traversal (CWE-23), a.k.a. Probllama
• CVE-2008-2223: SQL injection through an ID that was supposed to be numeric.
Related
Observed example · CVE (2)
- CVE-2024-37032 Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus… vulnerability
- CVE-2008-2223 SQL injection vulnerability in group_posts.php in vShare YouTube Clone 2.6 allows remote attackers to execute arbitrary SQL commands via… vulnerability
Child of · CWE (1)
- CWE-20 Improper Input Validation weakness
Peer of · CWE (1)
- CWE-843 Access of Resource Using Incompatible Type weakness
Referenced by CVE · weakness (170)
- CVE-2026-110985 A Kafka broker using SASL/OAUTHBEARER with the default validator (sasl.oauthbearer.jwt.validator.class=DefaultJwtValidator) selects its… vulnerability
- CVE-2026-90458 OpenStack Ironic before 39.0.1 allows DELETE and GET via vendor_passthru, e.g., to delete accounts from the BMC's Redfish service. vulnerability
- CVE-2026-115383 Wasmtime 47.0.0 before 48.0.4 and 49.0.0 before 49.0.2 contains an improper validation vulnerability that accepts components whose core… vulnerability
- CVE-2026-114509 Laravel is a web application framework. vulnerability
- CVE-2026-110857 GitPython before 3.2.0 contains a remote code execution vulnerability that allows attackers to run commands because Git.ls_remote forwards… vulnerability
- CVE-2026-96044 No cwe for this issue in Microsoft Office SharePoint allows an authorized attacker to elevate privileges over a network. vulnerability
- CVE-2026-97801 Improper validation of specified type of input in .NET Framework allows an unauthorized attacker to perform tampering over a network. vulnerability
- CVE-2026-78016 Dell Secure Connect Gateway (SCG) Policy Manager, versions prior to 5.34.00.16, contains an Improper Validation of Specified Type of Input… vulnerability
- CVE-2026-107723 fast-jwt provides fast JSON Web Token (JWT) implementation. vulnerability
- CVE-2026-102714 `_nx_icmpv6_validate_options()` scans the option area with `while (length > 2)` (`common/src/nx_icmpv6_validate_options.c:79`). vulnerability
- CVE-2026-94570 SGLang contains a DoS vulnerability caused by missing input validation for AUX_DATA ZeroMQ control messages in the Decode worker, which… vulnerability
- CVE-2026-75588 Mattermost Desktop App versions <=6.2 6.2.2.0 fail to validate the URL scheme when checking whether a target URL is internal to the… vulnerability
- CVE-2026-89207 A vulnerability has been identified in WTV676-HB6035 Web Interface (All versions < V3.94), WTV776-HB6035 Web Interface (All versions <… vulnerability
- CVE-2026-87012 Open WebUI is an extensible, feature-rich, and user-friendly self-hosted AI platform. vulnerability
- CVE-2026-86287 Net::IP::LPM versions before 1.12 for Perl accept malformed prefix lengths. vulnerability
- CVE-2026-52763 YesWiki is a wiki system written in PHP. vulnerability
- CVE-2026-59680 An OS command injection vulnerability was found in yast2-users. vulnerability
- CVE-2026-82741 Improper Validation of Specified Type of Input vulnerability in ash-project ash lets an attacker confuse the stored type tag of an… vulnerability
- CVE-2026-80051 github.com/graphql-go/graphql (GraphQL for Go) through 0.8.1 does not validate that a scalar variable value matches its declared type. vulnerability
- CVE-2026-17113 A flaw was found in CRI-O's container-creation environment-variable handling (`mergeEnvs` in `server/utils.go`, consumed by… vulnerability
- CVE-2026-5304 An ACAP configuration file lacks input validation, which could potentially lead to privilege escalation. vulnerability
- CVE-2026-18830 Insufficient input validation in Amazon Bedrock AgentCore harness might allow an authenticated remote user to execute configured tools… vulnerability
- CVE-2026-20498 In geniezone, there is a possible escalation of privilege due to a missing permission check. vulnerability
- CVE-2026-9390 XML::Sig versions before 0.71 for Perl allow XPath injection in ID lookup. vulnerability
- CVE-2026-4773 Improper validation of specified type of input vulnerability in Magarsus Consulting Ltd. vulnerability
- CVE-2026-45069 Symfony is a PHP framework for web and console applications and a set of reusable PHP components. vulnerability
- CVE-2026-50524 Improper validation of specified type of input in .NET Framework allows an unauthorized attacker to deny service over a network. vulnerability
- CVE-2026-55124 Improper validation of specified type of input in Microsoft Office Word allows an unauthorized attacker to disclose information locally. vulnerability
- CVE-2026-44935 Missing validation of "valuesFrom" references in Helm Deployer of SUSE Rancher Fleet 0.15 before 0.15.2, 0.14 before 0.14.6, 0.13 before… vulnerability
- CVE-2026-54235 vLLM is an inference and serving engine for large language models (LLMs). vulnerability