Security Resilience

CWE · MITRE source

CWE-670Always-Incorrect Control Flow Implementation

Abstraction: Class · CVEs in our corpus: 157

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: 16 October 2026 07:24 UTC

NIST 800-53 r5 controls PROPOSED for this weakness (0)AI-assisted

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

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-2024-32896 KEV 8.57.80.02992024-06-13
CVE-2019-17192 7.89.80.02732019-10-05
CVE-2020-1914 7.79.80.02512020-10-08
CVE-2020-17466 7.69.80.01472020-08-11
CVE-2025-43359 7.59.80.00932025-09-15
CVE-2022-25745 7.39.80.00422023-04-13
CVE-2026-967607.29.80.00282026-09-28
CVE-2020-9425 7.17.50.19042020-03-20
CVE-2025-29312 6.99.10.00482025-03-24
CVE-2026-552766.99.10.00612026-06-29
CVE-2018-16766 6.88.80.01272018-09-10
CVE-2026-16392 6.89.10.00362026-07-21
CVE-2022-2993 6.68.60.00592022-12-09
CVE-2023-20558 6.68.80.00672023-04-02
CVE-2023-31211 6.68.80.00512024-01-12
CVE-2022-29255 6.58.20.01332022-06-09
CVE-2023-1668 6.58.20.01222023-04-10
CVE-2021-41153 6.48.70.01032021-10-18
CVE-2024-32971 6.49.00.00732024-05-02
CVE-2024-52811 6.48.20.00842024-11-25
CVE-2025-38291 6.48.80.00222025-07-10
CVE-2019-9946 6.37.50.03162019-04-02
CVE-2020-36277 6.37.50.02432021-03-11
CVE-2022-31116 6.37.50.02552022-07-05
CVE-2024-20480 6.38.60.00572024-09-25