---
title: "CWE-351: Insufficient Type Distinction"
url: https://radicalnotion.ai/cwe/cwe-351
type: cwe
description: "The product does not properly distinguish between different types of elements in a way that leads to insecure behavior."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-351: Insufficient Type Distinction

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 16
- **Of those, in CISA KEV:** 1
- **New in 2026:** 3
- **CWE catalog version:** 4.21

## Description

The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Other | - |

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2005-2260 | Browser user interface does not distinguish between user-initiated and synthetic events. |
| CVE-2005-2801 | Product does not compare all required data in two separate elements, causing it to think they are the same, leading to loss of ACLs. Similar to Same Name error. |

## Real CVEs with this weakness (sample of 12 of 16)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-38831 | RARLAB WinRAR Code Execution Vulnerability | high | 8.4 | - | Yes | 2023-08-23 |
| CVE-2020-35872 | Improper type usage in rusqlite | critical | 9.8 | - | No | 2020-12-31 |
| CVE-2025-30510 | Growatt Cloud portal Insufficient Type Distinction | critical | 9.3 | - | No | 2025-04-15 |
| CVE-2025-54413 | skops' MethodNode can access unexpected object fields through dot notation, leading to arbitrary code execution at load time | high | 8.7 | - | No | 2025-07-26 |
| CVE-2025-54412 | skops' Inconsistent Trusted Type Validation Enables Hidden \`operator\` Methods Execution | high | 8.7 | - | No | 2025-07-26 |
| CVE-2023-2866 | Advantech WebAccess Insufficient Type Distinction | high | 7.8 | - | No | 2023-06-07 |
| CVE-2025-32035 | DNN does not check the contents of a file when uploading files | high | 7.5 | - | No | 2025-04-08 |
| CVE-2025-65960 | Contao is vulnerable to remote code execution in template closures | medium | 6.6 | - | No | 2025-11-25 |
| CVE-2026-15305 | TYPO3 CMS - Unrestricted File Upload in Form Framework | medium | 6.3 | - | No | 2026-07-14 |
| CVE-2020-10134 | Bluetooth devices supporting LE and specific BR/EDR implementations are vulnerable to method confusion attacks | medium | 6.3 | - | No | 2020-05-19 |
| CVE-2024-4769 | Mozilla: Cross-origin responses could be distinguished between script and non-script content-types | medium | 5.9 | - | No | 2024-05-14 |
| CVE-2025-38686 | userfaultfd: fix a crash in UFFDIO\_MOVE when PMD is a migration entry | medium | 5.5 | - | No | 2025-09-04 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-345](https://radicalnotion.ai/cwe/cwe-345) | Insufficient Verification of Data Authenticity |
| Peer | [CWE-434](https://radicalnotion.ai/cwe/cwe-434) | Unrestricted Upload of File with Dangerous Type |
| Peer | [CWE-436](https://radicalnotion.ai/cwe/cwe-436) | Interpretation Conflict |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Insufficient Type Distinction | - | - |

## Frequently asked questions

### What is CWE-351?

The product does not properly distinguish between different types of elements in a way that leads to insecure behavior.

### What CVEs are caused by CWE-351?

16 recorded CVEs are attributed to CWE-351, including CVE-2023-38831, CVE-2020-35872 and CVE-2025-30510. 1 is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### What are the consequences of CWE-351?

Exploiting CWE-351 can lead to: Other.

### Is CWE-351 actively exploited?

Yes. 1 CWE-351 vulnerability is in CISA's KEV catalog of actively exploited flaws, out of 16 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/351.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-351). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
