CWE-1025

Overview
  • CWE ID
  • 1025
  • CWE Name
  • Comparison Using Wrong Factors
  • CWE Abstraction
  • Base
  • CWE structure
  • Simple
  • CWE Status
  • Incomplete
Description
The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities, which can lead to incorrect results and resultant weaknesses.
Extended Description
This can lead to incorrect results and resultant weaknesses. For example, the code might inadvertently compare references to objects, instead of the relevant contents of those objects, causing two "equal" objects to be considered unequal.
Related CWEs
CWE ID View ID Nature Ordinal
697 1000 ChildOf Primary
Related CVEs