Katalog CWE

CWE-697 · Słabość

Incorrect Comparison

Abstrakcja
Filar
Status
Niekompletny
Dodano
9 września 2008
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

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

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.

Skutki

  • Other

    Varies by Context

    When the comparison is incorrect, it may lead to resultant weaknesses.

Przykłady podatności

Słabości podrzędne

Kiedy powstaje

Dotyczy

Not Language-Specific, Not Technology-Specific

Uwagi

Weaknesses related to this Pillar appear to be under-studied, especially with respect to classification schemes. Input from academic and other communities could help identify and resolve gaps or organizational difficulties within CWE.

This entry likely has some relationships with case sensitivity (CWE-178), but case sensitivity is a factor in other types of weaknesses besides comparison. Also, in cryptography, certain attacks are possible when certain comparison operations do not take place in constant time, causing a timing-related information leak (CWE-208).

Wpis z katalogu CWE 4.20.