CWE-351: Insufficient Type Distinction
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.
- 6.3CVE-2026-15305EPSS 0.3%
Users were able to upload files with arbitrary MIME types to forms using FileUpload or ImageUpload elements with allowedMimeTypes configured. The restriction was not enforced server-side because the MimeTypeValidator was registered during …
- 8.8CVE-2025-31951EPSS 0.2%
HCL BigFix RunBookAI is affected by a Unvalidated Command Input / Potential Command Smuggling vulnerability. A flaw in a component's input handling was identified that could permit unauthorized command execution.
- 2.3CVE-2026-41341EPSS 0.1%
OpenClaw before 2026.3.31 contains a logic error in Discord component interaction routing that misclassifies group direct messages as direct messages in extensions/discord/src/monitor/agent-components-helpers.ts. Attackers can exploit this…
- 6.6CVE-2025-65960EPSS 0.2%
Contao is an Open Source CMS. From version 4.0.0 to before 4.13.57, before 5.3.42, and before 5.6.5, back end users with precise control over the contents of template closures can execute arbitrary PHP functions that do not have required p…
- 8.7CVE-2025-54413EPSS 0.2%
skops is a Python library which helps users share and ship their scikit-learn based models. Versions 0.11.0 and below contain an inconsistency in MethodNode, which can be exploited to access unexpected object fields through dot notation. T…
- 8.7CVE-2025-54412EPSS 0.2%
skops is a Python library which helps users share and ship their scikit-learn based models. Versions 0.11.0 and below contain a inconsistency in the OperatorFuncNode which can be exploited to hide the execution of untrusted operator method…
- 5.4CVE-2025-47939EPSS 0.2%
TYPO3 is an open source, PHP based web content management system. By design, the file management module in TYPO3’s backend user interface has historically allowed the upload of any file type, with the exception of those that are directly e…
- 9.3CVE-2025-30510EPSS 0.3%
An attacker can upload an arbitrary file instead of a plant image.
- 7.5CVE-2025-32035EPSS 0.2%
DNN (formerly DotNetNuke) is an open-source web content management platform (CMS) in the Microsoft ecosystem. Prior to 9.13.2, when uploading files (e.g. when uploading assets), the file extension is checked to see if it's an allowed file …
- 4.3CVE-2024-45676EPSS 0.2%
IBM Cognos Controller 11.0.0 and 11.0.1 could allow an authenticated user to upload insecure files, due to insufficient file type distinction.
- 5.9CVE-2024-4769EPSS 0.4%
When importing resources using Web Workers, error messages would distinguish the difference between `application/javascript` responses and non-script responses. This could have been abused to learn information cross-origin. This vulnerabi…
- 7.8CVE-2023-38831KEVExploitEPSS 99.8%
RARLAB WinRAR before 6.23 allows attackers to execute arbitrary code when a user attempts to view a benign file within a ZIP archive. The issue occurs because a ZIP archive may include a benign file (such as an ordinary .JPG file) and also…
- 7.8CVE-2023-2866EPSS 0.1%
If an attacker can trick an authenticated user into loading a maliciously crafted .zip file onto Advantech WebAccess version 8.4.5, a web shell could be used to give the attacker full control of the SCADA server.
- 7.5CVE-2022-1642EPSS 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 …
- 6.3CVE-2020-10134EPSS 0.7%
Pairing in Bluetooth® Core v5.2 and earlier may permit an unauthenticated attacker to acquire credentials with two pairing devices via adjacent access when the unauthenticated user initiates different pairing methods in each peer device an…