CWE-351: Insufficient Type Distinction, published in 2022
Filter
The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.
What the weakness is: CWE-351 at MITRE. All weaknesses
Ask an AI about CWE-351
Show the prompt
Explain CWE-351: Insufficient Type Distinction and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/351.html and https://cve.bz/cve/cwe/351?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-2022-1642apple swiftEPSS 0.7%
A program using swift-corelibs-foundation is vulnerable to a denial of service attack caused by a potentially malicious source producing a JSON document containing a type mismatch. This vulnerability is caused by the interaction between a …