Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-670 (控制流实现总是不正确) — Vulnerability Class 87

87 vulnerabilities classified as CWE-670 (控制流实现总是不正确). AI Chinese analysis included.

CWE-670 represents a critical implementation flaw where the actual control flow diverges from the intended algorithmic logic, resulting in consistent incorrect behavior whenever the erroneous path is executed. This weakness typically arises from misunderstandings of language syntax, such as omitting braces in conditional statements or misusing loop structures, causing unintended execution sequences. Attackers exploit these logical gaps to bypass security checks, manipulate data integrity, or trigger denial-of-service conditions by forcing the application down an unexpected code path. To prevent CWE-670, developers must rigorously adhere to coding standards, utilize static analysis tools to detect structural anomalies, and employ comprehensive unit testing that specifically targets edge cases and complex branching logic. Clear code formatting and peer reviews further ensure that the implemented flow accurately mirrors the designed algorithm, eliminating ambiguity and ensuring predictable system behavior.

MITRE CWE Description
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.
Common Consequences (1)
Other Other, Alter Execution Logic
Examples (2)
This code queries a server and displays its status when a request comes from an authorized IP address.
$requestingIP = $_SERVER['REMOTE_ADDR']; if(!in_array($requestingIP,$ipAllowList)){ echo "You are not authorized to view this page"; http_redirect($errorPageURL); } $status = getServerStatus(); echo $status; ...
Bad · PHP
In this example, the programmer has indented the statements to call Do_X() and Do_Y(), as if the intention is that these functions are only called when the condition is true. However, because there are no braces to signify the block, Do_Y() will always be executed, even if the condition is false.
if (condition==true) Do_X(); Do_Y();
Bad · C
CVE ID Title CVSS Severity Published
CVE-2026-117859 Keycloak-services: keycloak-services: par single-use bypass via flow restart — Red Hat Build of Keycloak 5.4 Medium 2026-10-29
CVE-2020-37288 Vyper 0.1.0b10 before 0.2.3 Invalid Jump Destination via Return in Nested Loops — vyper 3.7 Low 2026-10-21
CVE-2026-106586 OpenSSH <10.6 restricted关键字隧道转发绕过 — OpenSSH 2.5 Low 2026-10-06
CVE-2026-73468 Security Advisory 0175 — EOS 6.5 Medium 2026-09-16
CVE-2026-55624 MintyItanium Lost-Auction takes items like barrier blocks out from search GUI — Lost-Auction 5.3 Medium 2026-08-25
CVE-2026-72705 Rocq Prover before 9.2.0 Guard Checker Accepts Fixpoint Passed as a Higher-Order Argument — rocq 6.3 Medium 2026-08-24
CVE-2026-72704 Rocq Prover through 9.2.0 Guard Checker Trusts Corrupted Recursive Tree After Transport — rocq 6.3 Medium 2026-08-24
CVE-2026-72703 Rocq Prover 8.20 before 9.2.0 Guard Checker Accepts Non-Terminating Fixpoint via Unchecked Cross-Calls — rocq 6.3 Medium 2026-08-24
CVE-2026-19487 Perl versions from 5.9.4 before 5.41.9 produce incorrect regular expression match results when a stale failure flag ends the Aho-Corasick prescan early in S_find_byclass - - 2026-08-13
CVE-2026-73283 OpenBSD OpenSSH 处理逻辑错误漏洞 — OpenSSH 2.5 Low 2026-08-11
CVE-2026-14935 Gstreamer1-plugins-bad-free: gstreamer: webrtcbin accepts remote sdp without a=fingerprint due to inverted presence check — Red Hat Enterprise Linux 10 3.7 Low 2026-07-07
CVE-2026-56328 Capgo - Integrity Issue in Release Routing via Multiple Public Channels — Capgo 6.5 Medium 2026-06-30
CVE-2026-55276 Apache Tomcat: Logged effective web.xml is incomplete — Apache Tomcat - - 2026-06-29
CVE-2026-53404 Apache Tomcat: Bad ornext processing in RewriteValve — Apache Tomcat - - 2026-06-29
CVE-2026-56307 Cap-go - Broken Cursor Pagination in /private/devices Endpoint — capgo 4.3 Medium 2026-06-20
CVE-2026-48844 Roundcube Webmail 安全漏洞 — Webmail 7.5 High 2026-05-25
CVE-2026-20171 Cisco Nexus 3000 and 9000 Series Border Gateway Protocol Denial of Service Vulnerability — Cisco NX-OS Software 6.8 Medium 2026-05-20
CVE-2026-44928 Uriparser 安全漏洞 — uriparser 2.9 Low 2026-05-08
CVE-2026-41988 uuid 安全漏洞 — uuid 3.2 Low 2026-04-23
CVE-2026-35343 uutils coreutils cut Inconsistent Output Suppression with Newline Delimiters — coreutils 3.3 Low 2026-04-22
CVE-2026-40942 DSF: Inverted Time Comparison in OIDC JWKS and Token Cache — dsf 5.9AI Medium AI 2026-04-21
CVE-2026-41527 kleopatra 安全漏洞 — Kleopatra 6.9 Medium 2026-04-21
CVE-2026-6608 lm-sys fastchat Arena Side-by-Side View add_text control flow — fastchat 5.3 Medium 2026-04-20
CVE-2026-40960 Luanti 安全漏洞 — Luanti 8.1 High 2026-04-16
CVE-2026-40719 MaraDNS 安全漏洞 — MaraDNS 7.5 High 2026-04-15
CVE-2026-40396 Varnish Cache 安全漏洞 — Varnish Cache 4.0 Medium 2026-04-12
CVE-2026-40394 Varnish Cache和Varnish Enterprise 安全漏洞 — Varnish Cache 4.0 Medium 2026-04-12
CVE-2026-40200 musl libc 安全漏洞 — musl 8.1 High 2026-04-10
CVE-2026-34946 Wasmtime's host panics when Winch compiler executes `table.fill` — wasmtime 7.7AI High AI 2026-04-09
CVE-2026-35414 OpenSSH 安全漏洞 — OpenSSH 4.2 Medium 2026-04-02

Vulnerabilities classified as CWE-670 (控制流实现总是不正确) represent 87 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.