CWE Database
/

CWE-1024

Back to CWE list

CWE-1024

Comparison of Incompatible Types

Base
Incomplete

Description

The product performs a comparison between two entities, but the entities are of different, incompatible types that cannot be guaranteed to provide correct results when they are directly compared.

Parent Weaknesses (ChildOf)

Common Consequences

Scope

Other

Impact

Varies by Context

Applicable Platforms

JavaScript
PHP
Not Language-Specific

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now