cve.bz

CWE-1254: Incorrect Comparison Logic Granularity, published in 2022

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 promptExplain 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

  1. 5.9CVE-2022-39308thoughtworks gocdEPSS 0.9%

    GoCD is a continuous delivery server. GoCD helps you automate and streamline the build-test-release cycle for continuous delivery of your product. GoCD versions from 19.2.0 to 19.10.0 (inclusive) are subject to a timing attack in validatio…