Cyber Posture

CWE · MITRE source

CWE-670Always-Incorrect Control Flow Implementation

Abstraction: Class · CVEs in our corpus: 130

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-94254.57.50.49452020-03-20
CVE-2024-32896 KEV3.67.80.00132024-06-13
CVE-2019-171922.09.80.01152019-10-05
CVE-2020-174662.09.80.00722020-08-11
CVE-2020-19142.09.80.00852020-10-08
CVE-2022-257452.09.80.00322023-04-13
CVE-2025-433592.09.80.00122025-09-15
CVE-2018-167661.88.80.00292018-09-10
CVE-2021-411531.88.70.00332021-10-18
CVE-2023-205581.88.80.00392023-04-02
CVE-2023-312111.88.80.00122024-01-12
CVE-2024-329711.89.00.00212024-05-02
CVE-2024-204801.88.60.01152024-09-25
CVE-2025-293121.89.10.00082025-03-24
CVE-2020-362771.77.50.04002021-03-11
CVE-2022-292551.78.20.00372022-06-09
CVE-2022-29931.78.60.00462022-12-09
CVE-2023-16681.78.20.00282023-04-10
CVE-2025-490911.78.20.00752025-06-11
CVE-2017-06041.67.80.00042017-05-12
CVE-2019-114121.67.50.01662019-04-22
CVE-2020-256031.67.80.00072020-09-23
CVE-2022-268901.67.50.00892022-05-05
CVE-2023-209151.67.80.00052023-01-26
CVE-2024-477451.67.80.00002024-10-21