1. CVE archive
  2. Vulnerability types
  3. CWE-1254
CWE-1254 · #564 most frequent type in the archive

Incorrect Comparison Logic Granularity

The product's comparison logic is performed over a series of steps rather than across the entire string in one operation. If there is a comparison logic failure on one of these steps, the operation may be vulnerable to a timing attack that can result in the interception of the process for nefarious purposes.

Part of: CWE-208 · Observable Timing Discrepancy

3CVEs of this type in the archive
0critical (CVSS ≥ 9)
2high severity (7–8.9)
May 11, 2026latest published

What it is

The product's comparison logic is performed over a series of steps rather than across the entire string in one operation. If there is a comparison logic failure on one of these steps, the operation may be vulnerable to a timing attack that can result in the interception of the process for nefarious purposes.

Comparison logic is used to compare a variety of objects including passwords, Message Authentication Codes (MACs), and responses to verification challenges. When comparison logic is implemented at a finer granularity (e.g., byte-by-byte comparison) and breaks in the case of a comparison failure, an attacker can exploit this implementation to identify when exactly the failure occurred. With multiple attempts, the attacker may be able to guesses the correct password/response to challenge and elevate their privileges.

Impact on systems

ScopeImpact
Confidentiality, Authorization Bypass Protection Mechanism

How to prevent it

Implementation The hardware designer should ensure that comparison logic is implemented so as to compare in one operation instead in smaller chunks.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-1254 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20251
20262

All CWE-1254 CVEs

3 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.