Common Weakness Enumeration

    CWE Definition / CWE-1025

    CWE-1025: Comparison Using Wrong Factors

    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.

    Published:4 Jan 2018
    Organization:MITRE
    Modified:30 Apr 2026

    Related Weakness

    CWE-697: Incorrect Comparison