CWE-241: Improper Handling of Unexpected Data Type, published in 2023
Filter
The product does not handle or incorrectly handles when a particular element is not the expected type, e.g. it expects a digit (0-9) but is provided with a letter (A-Z).
What the weakness is: CWE-241 at MITRE. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-241, as MITRE names them. Credits.
Ask an AI about CWE-241
Show the prompt
Explain CWE-241: Improper Handling of Unexpected Data Type and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/241.html and https://cve.bz/cve/cwe/241?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 7.5CVE-2023-30591nodebbEPSS 1.2%
Denial-of-service in NodeBB <= v2.8.10 allows unauthenticated attackers to trigger a crash, when invoking `eventName.startsWith()` or `eventName.toString()`, while processing Socket.IO messages via crafted Socket.IO messages containing arr…
- 6.5CVE-2023-5215redhatEPSS 0.7%
A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec states the size is a 64-bit unsigned value). This issue could lead to an application crash or other unintended behavior for NBD clients that do…
- 5.3CVE-2023-28961juniper junosEPSS 0.5%
An Improper Handling of Unexpected Data Type vulnerability in IPv6 firewall filter processing of Juniper Networks Junos OS on the ACX Series devices will prevent a firewall filter with the term 'from next-header ah' from being properly ins…