CWE-1254: Incorrect Comparison Logic Granularity, published in 2021
Filter
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.
What the weakness is: CWE-1254 at MITRE. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-1254, as MITRE names them. Credits.
Ask an AI about CWE-1254
Show the prompt
Explain CWE-1254: Incorrect Comparison Logic Granularity and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1254.html and https://cve.bz/cve/cwe/1254?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
No records match.