CWE-240: Improper Handling of Inconsistent Structural Elements
The product does not handle or incorrectly handles when two or more structural elements should be consistent, but are not.
Last updated
Overview
CWE-240 (Improper Handling of Inconsistent Structural Elements) is a class-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
4 recorded CVEs are caused by CWE-240 (Improper Handling of Inconsistent Structural Elements). The highest-severity and most recent are shown first. None so far in 2026 (1 in 2025).
- CVE-2021-31890
Improper Handling of Inconsistent Structural Elements in Siemens SIMOTICS CONNECT 400
Critical · CVSS 9.1 · EPSS 83th2021-11-09 - CVE-2025-4321
DoS in RS9116W-WiSeConnect L2CAP protocol due to reception of malformed packets
High · CVSS 7.1 · EPSS 13th2025-11-17 - CVE-2022-40957
Mozilla: Incoherent instruction cache when building WASM on ARM64