CWE-1024 — Comparison of Incompatible Types
CWE-1024: Comparison of Incompatible Types
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
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.
Common consequences
- Other: Varies by Context
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1024.html
- CWE list: https://cwe.mitre.org/data/index.html