CWE-697

Incorrect Comparison
AI Translation Available

The product compares two entities in a security-relevant context, but the comparison is incorrect.

Status
incomplete
Abstraction
pillar

This Pillar covers several possibilities:

- the comparison checks one factor incorrectly;

- the comparison should consider multiple factors, but it does not check at least one of those factors at all;

- the comparison checks the wrong factor.

Common Consequences

other
Impacts
varies by context

Detection Methods

automated static analysis

Potential Mitigations