CWE · MITRE source
CWE-670Always-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.
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.
Last updated: 09 May 2026 03:25 UTC
NIST 800-53 r5 controls that address this weakness (0)AI
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2020-9425 | 4.5 | 7.5 | 0.4945 | 2020-03-20 |
CVE-2024-32896 KEV | 3.6 | 7.8 | 0.0013 | 2024-06-13 |
CVE-2019-17192 | 2.0 | 9.8 | 0.0115 | 2019-10-05 |
CVE-2020-17466 | 2.0 | 9.8 | 0.0072 | 2020-08-11 |
CVE-2020-1914 | 2.0 | 9.8 | 0.0085 | 2020-10-08 |
CVE-2022-25745 | 2.0 | 9.8 | 0.0032 | 2023-04-13 |
CVE-2025-43359 | 2.0 | 9.8 | 0.0012 | 2025-09-15 |
CVE-2018-16766 | 1.8 | 8.8 | 0.0029 | 2018-09-10 |
CVE-2021-41153 | 1.8 | 8.7 | 0.0033 | 2021-10-18 |
CVE-2023-20558 | 1.8 | 8.8 | 0.0039 | 2023-04-02 |
CVE-2023-31211 | 1.8 | 8.8 | 0.0012 | 2024-01-12 |
CVE-2024-32971 | 1.8 | 9.0 | 0.0021 | 2024-05-02 |
CVE-2024-20480 | 1.8 | 8.6 | 0.0115 | 2024-09-25 |
CVE-2025-29312 | 1.8 | 9.1 | 0.0008 | 2025-03-24 |
CVE-2020-36277 | 1.7 | 7.5 | 0.0400 | 2021-03-11 |
CVE-2022-29255 | 1.7 | 8.2 | 0.0037 | 2022-06-09 |
CVE-2022-2993 | 1.7 | 8.6 | 0.0046 | 2022-12-09 |
CVE-2023-1668 | 1.7 | 8.2 | 0.0028 | 2023-04-10 |
CVE-2025-49091 | 1.7 | 8.2 | 0.0075 | 2025-06-11 |
CVE-2017-0604 | 1.6 | 7.8 | 0.0004 | 2017-05-12 |
CVE-2019-11412 | 1.6 | 7.5 | 0.0166 | 2019-04-22 |
CVE-2020-25603 | 1.6 | 7.8 | 0.0007 | 2020-09-23 |
CVE-2022-26890 | 1.6 | 7.5 | 0.0089 | 2022-05-05 |
CVE-2023-20915 | 1.6 | 7.8 | 0.0005 | 2023-01-26 |
CVE-2024-47745 | 1.6 | 7.8 | 0.0000 | 2024-10-21 |