CWEweakness

CWE-843 Access of Resource Using Incompatible Type

Official page ↗
Alternate terms
Type Confusion, Object Type Confusion
Abstraction
Base
Structure
Simple
Status
Incomplete
Languages
C, C++, Python
CWE version
5.0

Description

The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.

Common consequences

• Other: Varies by Context — When the product accesses the resource using an incompatible type, this could trigger logical errors because the resource does not have expected properties. • Availability, Integrity, Confidentiality: Read Memory, Modify Memory, Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart — If a memory buffer is accessed using an incompatible type, and the allocated buffer is smaller than the type that the code is attempting to access, then an attacker could read or write memory outside the bounds of the buffer, leading to a crash or possibly code execution.

Detection methods

• Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Observed examples

• CVE-2025-32352: Type confusion in PHP app allows authentication bypass when users have passwords whose MD5 hashes can be interpreted as numbers • CVE-2010-4577: Type confusion in CSS sequence leads to out-of-bounds read. • CVE-2011-0611: Size inconsistency allows code execution, first discovered when it was actively exploited in-the-wild. • CVE-2010-0258: Improperly-parsed file containing records of different types leads to code execution when a memory location is interpreted as a different object than intended.

Related

Observed example · CVE (4)

  • CVE-2025-32352 A type confusion vulnerability in lib/NSSAuthenticator.php in ZendTo before v5.04-7 allows remote attackers to bypass authentication for… vulnerability
  • CVE-2011-0611 Adobe Flash Player before 10.2.154.27 on Windows, Mac OS X, Linux, and Solaris and 10.2.156.12 and earlier on Android; Adobe AIR before… vulnerability
  • CVE-2010-4577 The CSSParser::parseFontFaceSrc function in WebCore/css/CSSParser.cpp in WebKit, as used in Google Chrome before 8.0.552.224, Chrome OS… vulnerability
  • CVE-2010-0258 Microsoft Office Excel 2002 SP3, 2003 SP3, and 2007 SP1 and SP2; Office 2004 and 2008 for Mac; Open XML File Format Converter for Mac;… vulnerability

Can precede · CWE (1)

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer weakness

Child of · CWE (1)

  • CWE-704 Incorrect Type Conversion or Cast weakness

Referenced by CVE · weakness (1,013)

  • CVE-2026-88090 Access of resource using incompatible type ('type confusion') in Microsoft Edge (Chromium-based) allows an unauthorized attacker to elevate… vulnerability
  • CVE-2026-96187 Access of resource using incompatible type ('type confusion') in Microsoft Edge (Chromium-based) allows an unauthorized attacker to… vulnerability
  • CVE-2026-118510 A type-handling flaw in the relationship query building of this MongoDB integration library can cause a check for the absence of a related… vulnerability
  • CVE-2026-114598 In EPICS Base release 7.0.10 and prior, an insufficient validation of element or length values in a network message can cause the… vulnerability
  • CVE-2026-62765 Access of resource using incompatible type ('type confusion') in Microsoft Edge (Chromium-based) allows an unauthorized attacker to execute… vulnerability
  • CVE-2026-85898 Access of resource using incompatible type ('type confusion') in Microsoft Edge (Chromium-based) allows an unauthorized attacker to execute… vulnerability
  • CVE-2026-112547 A type confusion issue was addressed with improved checks. vulnerability
  • CVE-2026-112659 A type confusion issue was addressed with improved memory handling. vulnerability
  • CVE-2026-116111 A vulnerability was determined in 2K Games Civilization V 1.0.3.144. vulnerability
  • CVE-2026-116370 A security flaw has been discovered in 2K Games Sid Meier's Civilization VI 1.0.12.68. vulnerability
  • CVE-2026-116489 Timescale pgvectorscale before 0.9.1 contains a type confusion vulnerability that allows low-privileged database users to corrupt memory by… vulnerability
  • CVE-2026-115889 Wasmtime is a runtime for WebAssembly. vulnerability
  • CVE-2026-115892 Wasmtime is a runtime for WebAssembly. vulnerability
  • CVE-2026-114115 Vyper 0.3.8 through 0.5.0b1 contains a compiler miscompilation vulnerability in parse_IfExp that reads nested arrays with narrower inner… vulnerability
  • CVE-2026-108518 DBI versions before 1.656 for Perl crash via type confusion in dbi_profile when a database handle is destroyed under a Profile Path with an… vulnerability
  • CVE-2026-113055 Type confusion in FullScreen in Google Chrome on on Android prior to 156.0.8078.47 allowed a remote attacker to execute arbitrary code… vulnerability
  • CVE-2026-86872 A logic issue was addressed with improved state management. vulnerability
  • CVE-2026-86922 A type confusion issue was addressed with improved state management. vulnerability
  • CVE-2026-110674 Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under… vulnerability
  • CVE-2026-0314 A type confusion vulnerability in Palo Alto Networks GlobalProtect™ app on Windows enables a local user with low privileges to cause a… vulnerability
  • CVE-2026-102203 Access of resource using incompatible type ('type confusion') in RPC Runtime allows an unauthorized attacker to execute code over a network. vulnerability
  • CVE-2026-102216 Access of resource using incompatible type ('type confusion') in Windows StateRepository API allows an authorized attacker to elevate… vulnerability
  • CVE-2026-102869 Access of resource using incompatible type ('type confusion') in .NET and Visual Studio allows an unauthorized attacker to elevate… vulnerability
  • CVE-2026-109720 JIT miscompilation in the JavaScript: WebAssembly component. vulnerability
  • CVE-2026-109733 JIT miscompilation in the JavaScript Engine: JIT component. vulnerability
  • CVE-2026-110140 Type confusion in V8 in Google Chrome prior to 155.0.8059.79 allowed a remote attacker to execute arbitrary code inside the sandbox via a… vulnerability
  • CVE-2026-69880 Access of resource using incompatible type ('type confusion') in Desktop Window Manager allows an authorized attacker to elevate privileges… vulnerability
  • CVE-2026-69926 Access of resource using incompatible type ('type confusion') in Desktop Window Manager allows an authorized attacker to elevate privileges… vulnerability
  • CVE-2026-70017 Access of resource using incompatible type ('type confusion') in Windows Secure Kernel Mode allows an authorized attacker to disclose… vulnerability
  • CVE-2026-70051 Access of resource using incompatible type ('type confusion') in Windows SmartScreen allows an authorized attacker to elevate privileges… vulnerability
Show all 1,013 ›

Referenced by CWE · peer of (1)

  • CWE-1287 Improper Validation of Specified Type of Input weakness