CWE-241: Improper Handling of Unexpected Data Type
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).
Last updated
Overview
CWE-241 (Improper Handling of Unexpected Data Type) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
39 recorded CVEs are caused by CWE-241 (Improper Handling of Unexpected Data Type). The highest-severity and most recent are shown first. 5 new CWE-241 CVEs have been recorded so far in 2026 (10 in 2025).
- CVE-2026-137513
justhtml before 3.17.0 Denial of Service via Unicode Digit Numeric Entity
High · CVSS 8.7 · EPSS 46th2026-11-26 - CVE-2021-40116
Multiple Cisco Products Snort Rule Denial of Service Vulnerability
High · CVSS 8.6 · EPSS 73th2021-10-27 - CVE-2024-58239
tls: stop recv() if initial process_rx_list gave us non-DATA