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

Always-Incorrect Control Flow Implementation

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

Part of: CWE-691 · Insufficient Control Flow Management

157CVEs of this type in the archive
14critical (CVSS ≥ 9)
66high severity (7–8.9)
Nov 12, 2026latest published

What it is

The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

This weakness captures cases in which a particular code segment is always incorrect with respect to the algorithm that it is implementing. For example, if a C programmer intends to include multiple statements in a single block but does not include the enclosing braces (CWE-483), then the logic is always incorrect. This issue is in contrast to most weaknesses in which the code usually behaves correctly, except when it is externally manipulated in malicious ways.

Impact on systems

ScopeImpact
Other Other, Alter Execution Logic

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

CWE-670 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20171
20183
20194
202013
202113
202213
202323
202428
202510
202649

All CWE-670 CVEs

157 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.